aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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}" )