Let it build with cmake 2.8.1 and older.
authoronefang <onefang>
Sun, 1 Jul 2012 06:25:31 +0000 (06:25 +0000)
committeronefang <onefang@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sun, 1 Jul 2012 06:25:31 +0000 (06:25 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/PROTO/eobj@73087 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

cmake/Modules/FindCheck.cmake
cmake/Modules/FindEcore.cmake
cmake/Modules/FindEdje.cmake
cmake/Modules/FindEet.cmake
cmake/Modules/FindEfreet.cmake
cmake/Modules/FindEina.cmake
cmake/Modules/FindElementary.cmake
cmake/Modules/FindEvas.cmake

index 795b615..13ed8e9 100644 (file)
@@ -6,7 +6,11 @@
 #  CHECK_DEFINITIONS - Compiler switches required for using check
 
 find_package(PkgConfig)
-pkg_check_modules(PC_LIBCHECK QUIET check)
+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_LIBCHECK ${_QUIET} check)
 set(CHECK_DEFINITIONS ${PC_LIBCHECK_CFLAGS_OTHER})
 
 find_path(CHECK_INCLUDE_DIR check.h
index 9778347..25368cb 100644 (file)
@@ -14,7 +14,11 @@ IF( Ecore_FIND_COMPONENTS )
 ENDIF( Ecore_FIND_COMPONENTS )
 
 find_package(PkgConfig)
-pkg_check_modules(PC_LIBECORE QUIET ecore)
+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_LIBECORE ${_QUIET} ecore)
 set(ECORE_DEFINITIONS ${PC_LIBECORE_CFLAGS_OTHER})
 
 find_path(ECORE_INCLUDE_DIR Ecore.h
@@ -36,7 +40,7 @@ find_package_handle_standard_args(ecore  DEFAULT_MSG
 mark_as_advanced( ECORE_INCLUDE_DIR ECORE_LIBRARY )
 
 if (ECORE_USE_ECORE-X)
-   pkg_check_modules(PC_LIBECORE_X QUIET ecore-x)
+   pkg_check_modules(PC_LIBECORE_X ${_QUIET} ecore-x)
    set(ECORE_X_DEFINITIONS ${PC_LIBECORE_X_CFLAGS_OTHER})
 
    find_path(ECORE_X_INCLUDE_DIR Ecore_X.h
index 927b31d..3e58d79 100644 (file)
@@ -6,7 +6,11 @@
 #  EDJE_DEFINITIONS - Compiler switches required for using edje
 
 find_package(PkgConfig)
-pkg_check_modules(PC_LIBEDJE QUIET edje)
+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_LIBEDJE ${_QUIET} edje)
 set(EDJE_DEFINITIONS ${PC_LIBEDJE_CFLAGS_OTHER})
 
 find_path(EDJE_INCLUDE_DIR Edje.h
index ae215d3..c749883 100644 (file)
@@ -6,7 +6,11 @@
 #  EET_DEFINITIONS - Compiler switches required for using eet
 
 find_package(PkgConfig)
-pkg_check_modules(PC_LIBEET QUIET eet)
+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_LIBEET ${_QUIET} eet)
 set(EET_DEFINITIONS ${PC_LIBEET_CFLAGS_OTHER})
 
 find_path(EET_INCLUDE_DIR Eet.h
index d245206..0ec8637 100644 (file)
@@ -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
index efc47e6..6debf90 100644 (file)
@@ -7,7 +7,11 @@
 #  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})
 
index 5b75bfc..5b09da0 100644 (file)
@@ -6,7 +6,11 @@
 #  ELEMENTARY_DEFINITIONS - Compiler switches required for using elementary
 
 find_package(PkgConfig)
-pkg_check_modules(PC_LIBELEMENTARY QUIET elementary)
+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_LIBELEMENTARY ${_QUIET} elementary)
 set(ELEMENTARY_DEFINITIONS ${PC_LIBELEMENTARY_CFLAGS_OTHER})
 
 find_path(ELEMENTARY_INCLUDE_DIR Elementary.h
index fe980d3..25a81fa 100644 (file)
@@ -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