summaryrefslogtreecommitdiffstats
path: root/cmake-e/cmake/Modules/FindEina.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake-e/cmake/Modules/FindEina.cmake')
-rw-r--r--cmake-e/cmake/Modules/FindEina.cmake8
1 files changed, 7 insertions, 1 deletions
diff --git a/cmake-e/cmake/Modules/FindEina.cmake b/cmake-e/cmake/Modules/FindEina.cmake
index acbd799..6debf90 100644
--- a/cmake-e/cmake/Modules/FindEina.cmake
+++ b/cmake-e/cmake/Modules/FindEina.cmake
@@ -3,11 +3,17 @@
# EINA_FOUND - System has eina
# EINA_INCLUDE_DIRS - The eina include directories
# EINA_LIBRARIES - The libraries needed to use eina
+# EINA_LDFLAGS_OTHER - Other LDFLAGS needed te use eina.
# EINA_DEFINITIONS - Compiler switches required for using eina
find_package(PkgConfig)
-pkg_check_modules(PC_LIBEINA QUIET eina)
+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_LIBEINA ${_QUIET} eina)
set(EINA_DEFINITIONS ${PC_LIBEINA_CFLAGS_OTHER})
+set(EINA_LDFLAGS_OTHER ${PC_LIBEINA_LDFLAGS_OTHER})
find_path(EINA_INCLUDE_DIR Eina.h
HINTS ${PC_LIBEINA_INCLUDEDIR} ${PC_LIBEINA_INCLUDE_DIRS}