diff --git a/CMakeLists.txt b/CMakeLists.txt index 0e092a6e59..35999d8ad5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -35,7 +35,7 @@ if(NOT DEFINED CMAKE_BUILD_TYPE AND NOT IS_MULTI) endif(NOT DEFINED CMAKE_BUILD_TYPE AND NOT IS_MULTI) include(CheckCSourceCompiles) -include(CheckFunctionExists) +include(CheckSymbolExists) include(CheckIncludeFile) include(CMakePackageConfigHelpers) include(CheckTypeSize) @@ -81,7 +81,7 @@ unset(CMAKE_REQUIRED_DEFINITIONS) # clear variable # # Check for fseeko # -check_function_exists(fseeko HAVE_FSEEKO) +check_symbol_exists(fseeko stdio.h HAVE_FSEEKO) # # Check for stdarg.h diff --git a/contrib/minizip/CMakeLists.txt b/contrib/minizip/CMakeLists.txt index 11606945d8..d907e527ad 100644 --- a/contrib/minizip/CMakeLists.txt +++ b/contrib/minizip/CMakeLists.txt @@ -35,7 +35,7 @@ option(MINIZIP_ENABLE_BZIP2 "Build minizip with bzip2 support" OFF) option(MINIZIP_INSTALL "Enable installation of minizip" ON) include(CheckCSourceCompiles) -include(CheckFunctionExists) +include(CheckSymbolExists) include(CheckIncludeFile) include(CMakePackageConfigHelpers) include(CheckTypeSize) @@ -64,12 +64,12 @@ endif(MINIZIP_ENABLE_BZIP2) # # Check for fopen64 # -check_function_exists(fopen64 HAVE_FOPEN64) +check_symbol_exists(fopen64 stdio.h HAVE_FOPEN64) # # Check for fseeko # -check_function_exists(fseeko HAVE_FSEEKO) +check_symbol_exists(fseeko stdio.h HAVE_FSEEKO) # # Check for unistd.h diff --git a/contrib/zlib1-dll/CMakeLists.txt b/contrib/zlib1-dll/CMakeLists.txt index caf6373dee..cf98c13857 100644 --- a/contrib/zlib1-dll/CMakeLists.txt +++ b/contrib/zlib1-dll/CMakeLists.txt @@ -29,7 +29,7 @@ option(ZLIB1_DLL_BUILD_TESTING "Build and run tests for zlib1.dll" ON) set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS TRUE) include(CheckCSourceCompiles) -include(CheckFunctionExists) +include(CheckSymbolExists) include(CheckIncludeFile) include(CMakePackageConfigHelpers) include(CheckTypeSize) @@ -74,7 +74,7 @@ endif(ZLIB1_DLL_ENABLE_BZIP2) # # Check for fopen64 # -check_function_exists(fopen64 HAVE_FOPEN64) +check_symbol_exists(fopen64 stdio.h HAVE_FOPEN64) # # Check to see if we have large file support @@ -86,7 +86,7 @@ unset(CMAKE_REQUIRED_DEFINITIONS) # clear variable # # Check for fseeko # -check_function_exists(fseeko HAVE_FSEEKO) +check_symbol_exists(fseeko stdio.h HAVE_FSEEKO) # # Check for stdarg.h