summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRenato Araujo Oliveira Filho <renato.filho@openbossa.org>2011-02-01 16:22:00 -0300
committerRenato Araujo Oliveira Filho <renato.filho@openbossa.org>2011-02-02 11:33:30 -0300
commit96d9cf72a376f42590a24d9516f306bae09faca3 (patch)
tree0985b578fed2038628a25bc677f3b9bba4a25059
parent984cd4d8fd361e89ac5b8a514b8088bb53b925f6 (diff)
Fixed Cmake files used to find the library after the installation.sb-0.6.5
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Hugo Parente Lima <hugo.pl@gmail.com>
-rw-r--r--data/GeneratorRunnerConfigVersion.cmake.in17
1 files changed, 9 insertions, 8 deletions
diff --git a/data/GeneratorRunnerConfigVersion.cmake.in b/data/GeneratorRunnerConfigVersion.cmake.in
index fe0e36e5..8eb5ba47 100644
--- a/data/GeneratorRunnerConfigVersion.cmake.in
+++ b/data/GeneratorRunnerConfigVersion.cmake.in
@@ -1,9 +1,10 @@
set(PACKAGE_VERSION @generator_VERSION@)
-if("${PACKAGE_FIND_VERSION_MAJOR}" EQUAL @generator_MAJOR_VERSION@)
- if("${PACKAGE_FIND_VERSION_MINOR}" EQUAL @generator_MINOR_VERSION@)
- set(PACKAGE_VERSION_COMPATIBLE 1)
- if("${PACKAGE_FIND_VERSION_PATCH}" EQUAL @generator_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}" )