summaryrefslogtreecommitdiffstats
path: root/Modules/FindGIF.cmake
diff options
context:
space:
mode:
authorClinton Stimpson <clinton@elemtech.com>2014-03-30 02:22:54 (GMT)
committerClinton Stimpson <clinton@elemtech.com>2014-03-30 02:22:54 (GMT)
commit83934757c942672d8bea79f11e51a184b168a212 (patch)
treedd6d3dc88daeb1a8ba07e1feb8d324667bb4c789 /Modules/FindGIF.cmake
parent4c0cc9ab9195d348ea5f1b004789ec334531bbb1 (diff)
downloadCMake-83934757c942672d8bea79f11e51a184b168a212.zip
CMake-83934757c942672d8bea79f11e51a184b168a212.tar.gz
CMake-83934757c942672d8bea79f11e51a184b168a212.tar.bz2
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/FindGIF.cmake')
-rw-r--r--Modules/FindGIF.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/FindGIF.cmake b/Modules/FindGIF.cmake
index 117ded7..7bbb8cf 100644
--- a/Modules/FindGIF.cmake
+++ b/Modules/FindGIF.cmake
@@ -66,6 +66,7 @@ if(GIF_INCLUDE_DIR)
include(${CMAKE_CURRENT_LIST_DIR}/CMakePushCheckState.cmake)
include(${CMAKE_CURRENT_LIST_DIR}/CheckStructHasMember.cmake)
CMAKE_PUSH_CHECK_STATE()
+ set(CMAKE_REQUIRED_QUIET ${GIF_FIND_QUIETLY})
set(GIF_VERSION 3)
set(CMAKE_REQUIRED_INCLUDES "${GIF_INCLUDE_DIR}")
CHECK_STRUCT_HAS_MEMBER(GifFileType UserData gif_lib.h GIF_GifFileType_UserData )