diff options
Diffstat (limited to 'cmake-e/cmake/Modules/FindElementary.cmake')
-rw-r--r-- | cmake-e/cmake/Modules/FindElementary.cmake | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/cmake-e/cmake/Modules/FindElementary.cmake b/cmake-e/cmake/Modules/FindElementary.cmake index 5b75bfc..5b09da0 100644 --- a/cmake-e/cmake/Modules/FindElementary.cmake +++ b/cmake-e/cmake/Modules/FindElementary.cmake @@ -6,7 +6,11 @@ # ELEMENTARY_DEFINITIONS - Compiler switches required for using elementary find_package(PkgConfig) -pkg_check_modules(PC_LIBELEMENTARY QUIET elementary) +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_LIBELEMENTARY ${_QUIET} elementary) set(ELEMENTARY_DEFINITIONS ${PC_LIBELEMENTARY_CFLAGS_OTHER}) find_path(ELEMENTARY_INCLUDE_DIR Elementary.h |