summaryrefslogtreecommitdiff
path: root/Modules/FindBZip2.cmake
diff options
context:
space:
mode:
authorClinton Stimpson <clinton@elemtech.com>2014-03-29 20:22:54 -0600
committerClinton Stimpson <clinton@elemtech.com>2014-03-29 20:22:54 -0600
commit83934757c942672d8bea79f11e51a184b168a212 (patch)
treedd6d3dc88daeb1a8ba07e1feb8d324667bb4c789 /Modules/FindBZip2.cmake
parent4c0cc9ab9195d348ea5f1b004789ec334531bbb1 (diff)
downloadcmake-83934757c942672d8bea79f11e51a184b168a212.tar.gz
Find*: Make find_package(.. QUIET) affect Check* modules.
Fixes issues #14812 and #14813 where find_package(OpenMP QUIET) and find_package(Qt4 QUIET) would still print out messages when calling check*() functions. Also a partial fix for #14445 where building CMake (without cmake-gui) when Qt5 is installed and Qt4 is not installed and warnings come out of FindQt4.cmake.
Diffstat (limited to 'Modules/FindBZip2.cmake')
-rw-r--r--Modules/FindBZip2.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/FindBZip2.cmake b/Modules/FindBZip2.cmake
index 388387735b..b4793327d9 100644
--- a/Modules/FindBZip2.cmake
+++ b/Modules/FindBZip2.cmake
@@ -57,7 +57,11 @@ FIND_PACKAGE_HANDLE_STANDARD_ARGS(BZip2
if (BZIP2_FOUND)
include(${CMAKE_CURRENT_LIST_DIR}/CheckLibraryExists.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)
+ cmake_pop_check_state()
endif ()
mark_as_advanced(BZIP2_INCLUDE_DIR)