summaryrefslogtreecommitdiff
path: root/legacy/eobj/cmake/Modules/FindElementary.cmake
diff options
context:
space:
mode:
authorDavid Walter Seikel <onefang@gmail.com>2012-07-01 06:25:31 +0000
committerDavid Walter Seikel <onefang@gmail.com>2012-07-01 06:25:31 +0000
commit57ce7d92db2864165cba6c1480e7c24ecabe9d3f (patch)
tree0e89e117c92054b609ca0dbec474a86a4cc88483 /legacy/eobj/cmake/Modules/FindElementary.cmake
parent77e10fd65b19634c4d77ed01da95974b154025f8 (diff)
Let it build with cmake 2.8.1 and older.
SVN revision: 73087
Diffstat (limited to 'legacy/eobj/cmake/Modules/FindElementary.cmake')
-rw-r--r--legacy/eobj/cmake/Modules/FindElementary.cmake6
1 files changed, 5 insertions, 1 deletions
diff --git a/legacy/eobj/cmake/Modules/FindElementary.cmake b/legacy/eobj/cmake/Modules/FindElementary.cmake
index 5b75bfcedd..5b09da09c0 100644
--- a/legacy/eobj/cmake/Modules/FindElementary.cmake
+++ b/legacy/eobj/cmake/Modules/FindElementary.cmake
@@ -6,7 +6,11 @@
6# ELEMENTARY_DEFINITIONS - Compiler switches required for using elementary 6# ELEMENTARY_DEFINITIONS - Compiler switches required for using elementary
7 7
8find_package(PkgConfig) 8find_package(PkgConfig)
9pkg_check_modules(PC_LIBELEMENTARY QUIET elementary) 9if ("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}.${CMAKE_PATCH_VERSION}" VERSION_GREATER "2.8.1")
10 # "QUIET" was introduced in 2.8.2
11 set(_QUIET QUIET)
12endif ()
13pkg_check_modules(PC_LIBELEMENTARY ${_QUIET} elementary)
10set(ELEMENTARY_DEFINITIONS ${PC_LIBELEMENTARY_CFLAGS_OTHER}) 14set(ELEMENTARY_DEFINITIONS ${PC_LIBELEMENTARY_CFLAGS_OTHER})
11 15
12find_path(ELEMENTARY_INCLUDE_DIR Elementary.h 16find_path(ELEMENTARY_INCLUDE_DIR Elementary.h