aboutsummaryrefslogtreecommitdiff
path: root/config-version.cmake.in
diff options
context:
space:
mode:
Diffstat (limited to 'config-version.cmake.in')
-rw-r--r--config-version.cmake.in10
1 files changed, 10 insertions, 0 deletions
diff --git a/config-version.cmake.in b/config-version.cmake.in
new file mode 100644
index 0000000..dbd7077
--- /dev/null
+++ b/config-version.cmake.in
@@ -0,0 +1,10 @@
+set (PACKAGE_VERSION "@project_VERSION@")
+
+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_VERSION}" VERSION_EQUAL "${PACKAGE_FIND_VERSION}")
+ set (PACKAGE_VERSION_EXACT TRUE)
+ endif ("${PACKAGE_VERSION}" VERSION_EQUAL "${PACKAGE_FIND_VERSION}")
+endif ("${PACKAGE_VERSION}" VERSION_LESS "${PACKAGE_FIND_VERSION}")