tasn pushed a commit to branch master.

commit 114b2adc596a5c22dd2cfe124726e807ae09e16e
Author: Ryuan Choi <[email protected]>
Date:   Wed Apr 3 14:37:02 2013 +0100

    Added ElementaryConfigVersion.cmake.in
---
 Makefile.am                                  |  4 +++-
 cmakeconfig/ElementaryConfigVersion.cmake.in | 11 +++++++++++
 configure.ac                                 |  1 +
 3 files changed, 15 insertions(+), 1 deletion(-)

diff --git a/Makefile.am b/Makefile.am
index d34fffb..ef7abd3 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -75,7 +75,9 @@ pkgconfigdir = $(libdir)/pkgconfig
 pkgconfig_DATA = elementary.pc
 
 cmakeconfigdir = $(prefix)/share/cmake/Modules
-cmakeconfig_DATA = cmakeconfig/ElementaryConfig.cmake
+cmakeconfig_DATA = \
+cmakeconfig/ElementaryConfig.cmake \
+cmakeconfig/ElementaryConfigVersion.cmake
 
 .PHONY: doc screenshots
 
diff --git a/cmakeconfig/ElementaryConfigVersion.cmake.in 
b/cmakeconfig/ElementaryConfigVersion.cmake.in
new file mode 100644
index 0000000..f99fba1
--- /dev/null
+++ b/cmakeconfig/ElementaryConfigVersion.cmake.in
@@ -0,0 +1,11 @@
+set(PACKAGE_VERSION "@VERSION@")
+
+# Check whether the requested PACKAGE_FIND_VERSION is compatible
+if ("${PACKAGE_VERSION}" VERSION_LESS "${PACKAGE_FIND_VERSION}")
+   set(PACKAGE_VERSION_COMPATIBLE FALSE)
+else ()
+   set(PACKAGE_VERSION_COMPATIBLE TRUE)
+   if ("${PACKAGE_VERSION}" VERSION_EQUAL "${PACKAGE_FIND_VERSION}")
+      set(PACKAGE_VERSION_EXACT TRUE)
+   endif ()
+endif ()
diff --git a/configure.ac b/configure.ac
index 494d0bf..0bcff37 100644
--- a/configure.ac
+++ b/configure.ac
@@ -829,6 +829,7 @@ config/standard/Makefile
 config/mobile/Makefile
 $po_makefile_in
 cmakeconfig/ElementaryConfig.cmake
+cmakeconfig/ElementaryConfigVersion.cmake
 ])
 
 #####################################################################

-- 

------------------------------------------------------------------------------
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire 
the most talented Cisco Certified professionals. Visit the 
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html

Reply via email to