summaryrefslogtreecommitdiff
path: root/cmake/Modules/FindEfreet.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/Modules/FindEfreet.cmake')
-rw-r--r--cmake/Modules/FindEfreet.cmake6
1 files changed, 5 insertions, 1 deletions
diff --git a/cmake/Modules/FindEfreet.cmake b/cmake/Modules/FindEfreet.cmake
index d245206..0ec8637 100644
--- a/cmake/Modules/FindEfreet.cmake
+++ b/cmake/Modules/FindEfreet.cmake
@@ -6,7 +6,11 @@
# EFREET_DEFINITIONS - Compiler switches required for using efreet
find_package(PkgConfig)
-pkg_check_modules(PC_LIBEFREET QUIET efreet)
+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_LIBEFREET ${_QUIET} efreet)
set(EFREET_DEFINITIONS ${PC_LIBEFREET_CFLAGS_OTHER})
find_path(EFREET_INCLUDE_DIR Efreet.h