summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRenato Araujo Oliveira Filho <renato.filho@openbossa.org>2011-02-01 16:17:24 -0300
committerRenato Araujo Oliveira Filho <renato.filho@openbossa.org>2011-02-02 11:42:52 -0300
commit1b1a83dc3038a51b2e60d74e2a8bdd27380e6e7c (patch)
tree1cea781b65c5749f9f138c1b0ace1e764afd7eac
parent87977cc320b98aee545d3743436441a32d83f969 (diff)
downloadpyside-1.0.0-beta5.tar.gz
pyside-1.0.0-beta5.tar.xz
pyside-1.0.0-beta5.zip
Fixed Cmake files used to find the library after the installation.1.0.0-beta5
Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Marcelo Lira <marcelo.lira@openbossa.org>
-rw-r--r--libpyside/PySideConfigVersion.cmake.in17
1 files changed, 9 insertions, 8 deletions
diff --git a/libpyside/PySideConfigVersion.cmake.in b/libpyside/PySideConfigVersion.cmake.in
index c644686..f5073ce 100644
--- a/libpyside/PySideConfigVersion.cmake.in
+++ b/libpyside/PySideConfigVersion.cmake.in
@@ -1,9 +1,10 @@
set(PACKAGE_VERSION @BINDING_API_VERSION@)
-if("${PACKAGE_FIND_VERSION_MAJOR}" EQUAL @BINDING_API_MAJOR_VERSION@)
- if("${PACKAGE_FIND_VERSION_MINOR}" EQUAL @BINDING_API_MINOR_VERSION@)
- set(PACKAGE_VERSION_COMPATIBLE 1)
- if("${PACKAGE_FIND_VERSION_PATCH}" EQUAL @BINDING_API_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}" )