diff options
Diffstat (limited to 'config/CMakeLists.txt')
-rw-r--r-- | config/CMakeLists.txt | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/config/CMakeLists.txt b/config/CMakeLists.txt index 77edd62882..b233418bda 100644 --- a/config/CMakeLists.txt +++ b/config/CMakeLists.txt @@ -1,18 +1,12 @@ include(CheckTypeSize) -include(CheckIncludeFiles) -include(CheckFunctionExists) +include(CheckSymbolExists) check_type_size("int" SIZEOF_INT) check_type_size("long" SIZEOF_LONG) check_type_size("time_t" SIZEOF_TIME_T) check_type_size("off_t" SIZEOF_OFF_T) -check_include_files(crt_externs.h HAVE_CRT_EXTERNS_H) - -if (HAVE_CRT_EXTERNS_H) - set(CMAKE_REQUIRED_INCLUDES crt_externs.h) -endif() -check_function_exists(_NSGetEnviron HAVE__NSGETENVIRON) +check_symbol_exists(_NSGetEnviron crt_externs.h HAVE__NSGETENVIRON) # generate configuration header and update include directories configure_file ( |