summaryrefslogtreecommitdiffstats
path: root/exporters/cmake/OpenSSLConfigVersion.cmake.in
diff options
context:
space:
mode:
Diffstat (limited to 'exporters/cmake/OpenSSLConfigVersion.cmake.in')
-rw-r--r--exporters/cmake/OpenSSLConfigVersion.cmake.in17
1 files changed, 17 insertions, 0 deletions
diff --git a/exporters/cmake/OpenSSLConfigVersion.cmake.in b/exporters/cmake/OpenSSLConfigVersion.cmake.in
new file mode 100644
index 0000000000..b1290a9eec
--- /dev/null
+++ b/exporters/cmake/OpenSSLConfigVersion.cmake.in
@@ -0,0 +1,17 @@
+# Generated by OpenSSL
+
+set(PACKAGE_VERSION {- $config{version} -})
+
+if(NOT PACKAGE_FIND_VERSION)
+ # find_package() was called without any version information. This is assumed to
+ # mean that the caller accepts whatever they get.
+ set(PACKAGE_VERSION_COMPATIBLE 1)
+elseif(PACKAGE_FIND_VERSION_MAJOR LESS {- my $x = $config{version}; $x =~ s/\..*//; $x -}
+ OR PACKAGE_FIND_VERSION VERSION_GREATER {- $config{version} -})
+ set(PACKAGE_VERSION_UNSUITABLE 1)
+else()
+ set(PACKAGE_VERSION_COMPATIBLE 1)
+ if(PACKAGE_FIND_VERSION VERSION_EQUAL {- $config{version} -})
+ set(PACKAGE_VERSION_EXACT 1)
+ endif()
+endif()