aboutsummaryrefslogtreecommitdiffstats
path: root/data/ShibokenConfigVersion.cmake.in
diff options
context:
space:
mode:
authorRenato Araujo Oliveira Filho <renato.filho@openbossa.org>2011-02-01 16:13:49 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-08 16:13:53 -0300
commit315ed272511b2d8cd6bfa61979cffbfb1fc64b5a (patch)
tree8445bc516537bf60ea6a4cf28da9414031f58249 /data/ShibokenConfigVersion.cmake.in
parent103b62aa700fab042e41e612aeff27af9897057d (diff)
Fixed Cmake files used to find the library after the installation.sb-1.0.0-beta5
Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Marcelo Lira <marcelo.lira@openbossa.org>
Diffstat (limited to 'data/ShibokenConfigVersion.cmake.in')
-rw-r--r--data/ShibokenConfigVersion.cmake.in17
1 files changed, 9 insertions, 8 deletions
diff --git a/data/ShibokenConfigVersion.cmake.in b/data/ShibokenConfigVersion.cmake.in
index 89d84fc1..b2658a96 100644
--- a/data/ShibokenConfigVersion.cmake.in
+++ b/data/ShibokenConfigVersion.cmake.in
@@ -1,9 +1,10 @@
set(PACKAGE_VERSION @shiboken_VERSION@)
-if("${PACKAGE_FIND_VERSION_MAJOR}" EQUAL @shiboken_MAJOR_VERSION@)
- if("${PACKAGE_FIND_VERSION_MINOR}" EQUAL @shiboken_MINOR_VERSION@)
- set(PACKAGE_VERSION_COMPATIBLE 1)
- if("${PACKAGE_FIND_VERSION_PATCH}" EQUAL @shiboken_MICRO_VERSION@)
- set(PACKAGE_VERSION_EXACT 1)
- endif()
- endif()
-endif()
+
+if("${PACKAGE_VERSION}" VERSION_LESS "${PACKAGE_FIND_VERSION}" )
+ set(PACKAGE_VERSION_COMPATIBLE FALSE)
+else("${PACKAGE_VERSION}" VERSION_LESS "${PACKAGE_FIND_VERSION}" )
+ set(PACKAGE_VERSION_COMPATIBLE TRUE)
+ if( "${PACKAGE_FIND_VERSION}" STREQUAL "${PACKAGE_VERSION}")
+ set(PACKAGE_VERSION_EXACT TRUE)
+ endif( "${PACKAGE_FIND_VERSION}" STREQUAL "${PACKAGE_VERSION}")
+endif("${PACKAGE_VERSION}" VERSION_LESS "${PACKAGE_FIND_VERSION}" )