aboutsummaryrefslogtreecommitdiff
path: root/socket_wrapper-config-version.cmake.in
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2014-01-20 23:34:54 +0100
committerAndreas Schneider <asn@samba.org>2014-01-20 23:34:54 +0100
commit980a30d0a96ca22ee47aa60eb8504c77eae232b5 (patch)
tree9632b89e5429951cca7eac9b5121cae6c8a06c03 /socket_wrapper-config-version.cmake.in
parentde86e64888556301ea5fbed99da887772640a58c (diff)
downloadsocket_wrapper-980a30d0a96ca22ee47aa60eb8504c77eae232b5.tar.gz
socket_wrapper-980a30d0a96ca22ee47aa60eb8504c77eae232b5.tar.xz
socket_wrapper-980a30d0a96ca22ee47aa60eb8504c77eae232b5.zip
cmake: Add cmake config version script.
Diffstat (limited to 'socket_wrapper-config-version.cmake.in')
-rw-r--r--socket_wrapper-config-version.cmake.in11
1 files changed, 11 insertions, 0 deletions
diff --git a/socket_wrapper-config-version.cmake.in b/socket_wrapper-config-version.cmake.in
new file mode 100644
index 0000000..98f292c
--- /dev/null
+++ b/socket_wrapper-config-version.cmake.in
@@ -0,0 +1,11 @@
+set(PACKAGE_VERSION @APPLICATION_VERSION@)
+
+# Check whether the requested PACKAGE_FIND_VERSION is compatible
+if("${PACKAGE_VERSION}" VERSION_LESS "${PACKAGE_FIND_VERSION}")
+ set(PACKAGE_VERSION_COMPATIBLE FALSE)
+else()
+ set(PACKAGE_VERSION_COMPATIBLE TRUE)
+ if ("${PACKAGE_VERSION}" VERSION_EQUAL "${PACKAGE_FIND_VERSION}")
+ set(PACKAGE_VERSION_EXACT TRUE)
+ endif()
+endif()