diff options
-rw-r--r-- | cmake/FindLFS.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmake/FindLFS.cmake b/cmake/FindLFS.cmake index e1fcf964..15c3d511 100644 --- a/cmake/FindLFS.cmake +++ b/cmake/FindLFS.cmake @@ -30,7 +30,7 @@ # LFS_FOUND - If there is Large files support # -include(CheckCXXSourceCompiles) +include(CheckCSourceCompiles) include(FindPackageHandleStandardArgs) # Test program to check for LFS. Requires that off_t has at least 8 byte large @@ -53,7 +53,7 @@ function(_lfs_check_compiler_option var options definitions libraries) set(CMAKE_REQUIRED_LIBRARIES ${CMAKE_REQUIRED_DEFINITIONS} ${libraries}) message(STATUS "Looking for LFS support using ${options} ${definitions} ${libraries}") - check_cxx_source_compiles("${_lfs_test_source}" ${var}) + check_c_source_compiles("${_lfs_test_source}" ${var}) if(${var}) message(STATUS "Looking for LFS support using ${options} ${definitions} ${libraries} - found") |