diff options
Diffstat (limited to 'cmake-e/cmake/Modules/FindCheck.cmake')
-rw-r--r-- | cmake-e/cmake/Modules/FindCheck.cmake | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/cmake-e/cmake/Modules/FindCheck.cmake b/cmake-e/cmake/Modules/FindCheck.cmake index 795b615..13ed8e9 100644 --- a/cmake-e/cmake/Modules/FindCheck.cmake +++ b/cmake-e/cmake/Modules/FindCheck.cmake @@ -6,7 +6,11 @@ # CHECK_DEFINITIONS - Compiler switches required for using check find_package(PkgConfig) -pkg_check_modules(PC_LIBCHECK QUIET check) +if ("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}.${CMAKE_PATCH_VERSION}" VERSION_GREATER "2.8.1") + # "QUIET" was introduced in 2.8.2 + set(_QUIET QUIET) +endif () +pkg_check_modules(PC_LIBCHECK ${_QUIET} check) set(CHECK_DEFINITIONS ${PC_LIBCHECK_CFLAGS_OTHER}) find_path(CHECK_INCLUDE_DIR check.h |