diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2012-09-07 22:37:43 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2012-09-07 22:37:43 +0200 |
commit | ef4a9a658ef88934c1e9152d1d056cb95d0c2046 (patch) | |
tree | e148afaee166c35191ae0ab86246e03e0c149865 /cmake-e/cmake/Modules/FindEina.cmake | |
parent | 215e17522fa53d857ef56ef3e0eca98d6ba37532 (diff) | |
download | skeletons-ef4a9a658ef88934c1e9152d1d056cb95d0c2046.zip skeletons-ef4a9a658ef88934c1e9152d1d056cb95d0c2046.tar.gz |
cmake-e: update cmake modules
Diffstat (limited to 'cmake-e/cmake/Modules/FindEina.cmake')
-rw-r--r-- | cmake-e/cmake/Modules/FindEina.cmake | 8 |
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} |