diff options
author | Brad King <brad.king@kitware.com> | 2015-07-22 15:04:28 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2015-07-22 15:04:28 (GMT) |
commit | 90b3b5e42c1d0a8b228314451706f49cfbb7e047 (patch) | |
tree | 92c80197b011c73c4befa1ca180673e9a1ca8058 /Modules | |
parent | 59678037a972fd5a3d7bbb9487dc86a15913220f (diff) | |
parent | 23876eda9f1d4b5725407aef7d218fc3ce4113cb (diff) | |
download | CMake-90b3b5e42c1d0a8b228314451706f49cfbb7e047.zip CMake-90b3b5e42c1d0a8b228314451706f49cfbb7e047.tar.gz CMake-90b3b5e42c1d0a8b228314451706f49cfbb7e047.tar.bz2 |
Merge topic 'FindBZip2-check-with-prototype'
23876eda FindBZip2: Check BZIP2_NEED_PREFIX with real prototype
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/FindBZip2.cmake | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Modules/FindBZip2.cmake b/Modules/FindBZip2.cmake index b479332..6af42dd 100644 --- a/Modules/FindBZip2.cmake +++ b/Modules/FindBZip2.cmake @@ -56,11 +56,13 @@ FIND_PACKAGE_HANDLE_STANDARD_ARGS(BZip2 VERSION_VAR BZIP2_VERSION_STRING) if (BZIP2_FOUND) - include(${CMAKE_CURRENT_LIST_DIR}/CheckLibraryExists.cmake) + include(${CMAKE_CURRENT_LIST_DIR}/CheckSymbolExists.cmake) include(${CMAKE_CURRENT_LIST_DIR}/CMakePushCheckState.cmake) cmake_push_check_state() set(CMAKE_REQUIRED_QUIET ${BZip2_FIND_QUIETLY}) - CHECK_LIBRARY_EXISTS("${BZIP2_LIBRARIES}" BZ2_bzCompressInit "" BZIP2_NEED_PREFIX) + set(CMAKE_REQUIRED_INCLUDES ${BZIP2_INCLUDE_DIR}) + set(CMAKE_REQUIRED_LIBRARIES ${BZIP2_LIBRARIES}) + CHECK_SYMBOL_EXISTS(BZ2_bzCompressInit "bzlib.h" BZIP2_NEED_PREFIX) cmake_pop_check_state() endif () |