diff options
author | Clinton Stimpson <clinton@elemtech.com> | 2014-03-29 20:22:54 -0600 |
---|---|---|
committer | Clinton Stimpson <clinton@elemtech.com> | 2014-03-29 20:22:54 -0600 |
commit | 83934757c942672d8bea79f11e51a184b168a212 (patch) | |
tree | dd6d3dc88daeb1a8ba07e1feb8d324667bb4c789 /Modules/FindCups.cmake | |
parent | 4c0cc9ab9195d348ea5f1b004789ec334531bbb1 (diff) | |
download | cmake-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/FindCups.cmake')
-rw-r--r-- | Modules/FindCups.cmake | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/FindCups.cmake b/Modules/FindCups.cmake index 4b55d6a58e..61353caf91 100644 --- a/Modules/FindCups.cmake +++ b/Modules/FindCups.cmake @@ -36,9 +36,13 @@ find_library(CUPS_LIBRARIES NAMES cups ) if (CUPS_INCLUDE_DIR AND CUPS_LIBRARIES AND CUPS_REQUIRE_IPP_DELETE_ATTRIBUTE) include(${CMAKE_CURRENT_LIST_DIR}/CheckLibraryExists.cmake) + include(${CMAKE_CURRENT_LIST_DIR}/CMakePushCheckState.cmake) + cmake_push_check_state() + set(CMAKE_REQUIRED_QUIET ${Cups_FIND_QUIETLY}) # ippDeleteAttribute is new in cups-1.1.19 (and used by kdeprint) CHECK_LIBRARY_EXISTS(cups ippDeleteAttribute "" CUPS_HAS_IPP_DELETE_ATTRIBUTE) + cmake_pop_check_state() endif () if (CUPS_INCLUDE_DIR AND EXISTS "${CUPS_INCLUDE_DIR}/cups/cups.h") |