summaryrefslogtreecommitdiffstats
path: root/data/ApiExtractorConfigVersion.cmake.in
diff options
context:
space:
mode:
Diffstat (limited to 'data/ApiExtractorConfigVersion.cmake.in')
-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}" )