aboutsummaryrefslogtreecommitdiff
path: root/cmake/FindLFS.cmake
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2017-09-10 04:01:21 -0700
committerGuy Harris <guy@alum.mit.edu>2017-09-10 04:01:21 -0700
commitd3e8a2610da7579b228f01cf2c81fc41f275d9b1 (patch)
treeef2123a8f39ec751d49d33bdf69c651487e29a1f /cmake/FindLFS.cmake
parentff1342a902cab66eb4c7821b09cee7219cd40bb9 (diff)
No need to treat the test program for off_t as C++.
It's just C, just as libpcap is just C.
Diffstat (limited to 'cmake/FindLFS.cmake')
-rw-r--r--cmake/FindLFS.cmake4
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")