aboutsummaryrefslogtreecommitdiff
path: root/libssh-config-version.cmake.in
diff options
context:
space:
mode:
authorChristophe Giboudeaux <christophe@krop.fr>2018-11-06 12:47:33 +0100
committerAndreas Schneider <asn@cryptomilk.org>2018-11-06 13:53:43 +0100
commitaa899f8ec06e21980403526fdb979071ecd9a65e (patch)
treed362d1793e148a7ba4018086a10ef0e9be3f1f78 /libssh-config-version.cmake.in
parentc88fb4c55b546eaa0063f651d470ed28daff0b2c (diff)
downloadlibssh-aa899f8ec06e21980403526fdb979071ecd9a65e.tar.gz
libssh-aa899f8ec06e21980403526fdb979071ecd9a65e.tar.xz
libssh-aa899f8ec06e21980403526fdb979071ecd9a65e.zip
cmake: Refresh the CMake Config files
This commit fixes a couple issues in the CMake configuration files and uses native features from CMake: * libssh-build-tree-settings.cmake is deleted. There was a typo that made this file unusable, anyway. * use the macros available in CMakePackageConfigHelpers.cmake to generate the version file and check that the files exist * Remove the LIBSSH_THREADS_LIBRARY variable, it used the non-existent LIBSSH_THREADS_LIBRARY_NAME variable. * Fix the in tree build. libssh can be used uninstalled again. Test plan: The values were tested after installing the new files and also without running 'make install'. Signed-off-by: Christophe Giboudeaux <christophe@krop.fr>
Diffstat (limited to 'libssh-config-version.cmake.in')
-rw-r--r--libssh-config-version.cmake.in11
1 files changed, 0 insertions, 11 deletions
diff --git a/libssh-config-version.cmake.in b/libssh-config-version.cmake.in
deleted file mode 100644
index 4bff45e2..00000000
--- a/libssh-config-version.cmake.in
+++ /dev/null
@@ -1,11 +0,0 @@
-set(PACKAGE_VERSION @PROJECT_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()