HomePhabricator

cmake: Refresh the CMake Config files

Authored by Christophe Giboudeaux <christophe@krop.fr> on Tue, Nov 6, 12:47 PM.

Description

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>
(cherry picked from commit aa899f8ec06e21980403526fdb979071ecd9a65e)

Details

Committed
asnTue, Nov 6, 2:02 PM
Parents
rLIBSSHa8d4fbaccb93: tests: Improve error reporting in auth test
Branches
Unknown
Tags
Unknown

Event Timeline

asn committed rLIBSSHdc071dc6cf1b: cmake: Refresh the CMake Config files (authored by Christophe Giboudeaux <christophe@krop.fr>).Tue, Nov 6, 2:02 PM