VWR-24520: Don't use pkg_check_modules( ... QUIET ) on CMake < 2.8.2

CMake before 2.8.2 doesn't support QUIET for pkg_check_modules(), yet.

Credit goes to Aleric, 'cause he told me what to change.
meow-7.2.2
Boroondas Gupte 2011-01-17 18:52:24 +01:00
parent d0a25a4184
commit eb9f19dabd
2 changed files with 3 additions and 2 deletions

View File

@ -74,6 +74,7 @@ Aleric Inglewood
VWR-14426
VWR-24247
VWR-24252
VWR-24520
SNOW-84
SNOW-477
SNOW-744

View File

@ -22,9 +22,9 @@ if (PKG_CONFIG_FOUND)
else (LLQtWebkit_FIND_REQUIRED AND LLQtWebkit_FIND_VERSION)
set(_PACKAGE_ARGS libllqtwebkit)
endif (LLQtWebkit_FIND_REQUIRED AND LLQtWebkit_FIND_VERSION)
if (NOT "${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}" VERSION_LESS "2.8")
if (NOT "${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}.${CMAKE_PATCH_VERSION}" VERSION_LESS "2.8.2")
# As virtually nobody will have a pkg-config file for this, do this check always quiet.
# Unfortunately cmake 2.8 or higher is required for pkg_check_modules to have a 'QUIET'.
# Unfortunately cmake 2.8.2 or higher is required for pkg_check_modules to have a 'QUIET'.
set(_PACKAGE_ARGS ${_PACKAGE_ARGS} QUIET)
endif ()
pkg_check_modules(LLQTWEBKIT ${_PACKAGE_ARGS})