summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRenato Araujo Oliveira Filho <renato.filho@openbossa.org>2011-02-01 16:22:37 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-09 19:10:14 -0300
commite97526444566ae2f6aad339c082d7e0a69e785e5 (patch)
tree7f0d9c257276befdc6f1d9cb3c1a13d8ee511e07
parentb9862f6a783ad302e6ef6f6f850ac95a5071c4ca (diff)
Fixed Cmake files used to find the library after the installation.sb-0.9.4
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Hugo Parente Lima <hugo.pl@gmail.com>
-rw-r--r--data/ApiExtractorConfigVersion.cmake.in17
1 files changed, 9 insertions, 8 deletions
diff --git a/data/ApiExtractorConfigVersion.cmake.in b/data/ApiExtractorConfigVersion.cmake.in
index a9f7318f..2c8c3fa8 100644
--- a/data/ApiExtractorConfigVersion.cmake.in
+++ b/data/ApiExtractorConfigVersion.cmake.in
@@ -1,9 +1,10 @@
set(PACKAGE_VERSION @apiextractor_VERSION@)
-if("${PACKAGE_FIND_VERSION_MAJOR}" EQUAL @apiextractor_MAJOR_VERSION@)
- if("${PACKAGE_FIND_VERSION_MINOR}" EQUAL @apiextractor_MINOR_VERSION@)
- set(PACKAGE_VERSION_COMPATIBLE 1)
- if("${PACKAGE_FIND_VERSION_PATCH}" EQUAL @apiextractor_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}" )