summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRenato Araujo Oliveira Filho <renato.filho@openbossa.org>2011-02-01 16:17:24 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-08 16:53:51 -0300
commita544dac9593fb03f30a09eba2513b17dac3ef97e (patch)
treef8d9068266b943ab4f6ca4bbbdf138f4a9b2f144
parent6b6527e74b7d9a15ed60c543e8834d672c7f8a8d (diff)
Fixed Cmake files used to find the library after the installation.ps-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 c6446862..f5073ce0 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}" )