summaryrefslogtreecommitdiffstats
path: root/cmake-e/cmake/Modules/FindEvas.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake-e/cmake/Modules/FindEvas.cmake')
-rw-r--r--cmake-e/cmake/Modules/FindEvas.cmake6
1 files changed, 5 insertions, 1 deletions
diff --git a/cmake-e/cmake/Modules/FindEvas.cmake b/cmake-e/cmake/Modules/FindEvas.cmake
index fe980d3..25a81fa 100644
--- a/cmake-e/cmake/Modules/FindEvas.cmake
+++ b/cmake-e/cmake/Modules/FindEvas.cmake
@@ -6,7 +6,11 @@
# EVAS_DEFINITIONS - Compiler switches required for using evas
find_package(PkgConfig)
-pkg_check_modules(PC_LIBEVAS QUIET evas)
+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_LIBEVAS ${_QUIET} evas)
set(EVAS_DEFINITIONS ${PC_LIBEVAS_CFLAGS_OTHER})
find_path(EVAS_INCLUDE_DIR Evas.h