aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2019-07-03 10:13:33 +0200
committerAndreas Schneider <asn@cryptomilk.org>2019-07-04 16:08:34 +0200
commit68533147e2c1ab8d0a9234474a993693aaca7375 (patch)
treedbac90e43308e2fe1ebfa0ae9c79b1ca0cb6aa44 /CMakeLists.txt
parent24af712931cdc2138553534b1a0c3c81120604d6 (diff)
downloadlibssh-68533147e2c1ab8d0a9234474a993693aaca7375.tar.gz
libssh-68533147e2c1ab8d0a9234474a993693aaca7375.tar.xz
libssh-68533147e2c1ab8d0a9234474a993693aaca7375.zip
cmake: Write libssh-config.cmake using EXPORTS
Signed-off-by: Andreas Schneider <asn@cryptomilk.org> Reviewed-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt7
1 files changed, 0 insertions, 7 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 077b9b7d..5dce15e1 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -133,15 +133,8 @@ write_basic_package_version_file(libssh-config-version.cmake
VERSION ${PROJECT_VERSION}
COMPATIBILITY SameMajorVersion)
-# libssh-config.cmake
-configure_package_config_file(${PROJECT_NAME}-config.cmake.in
- ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}-config.cmake
- INSTALL_DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}
- PATH_VARS CMAKE_INSTALL_FULL_INCLUDEDIR CMAKE_INSTALL_FULL_LIBDIR)
-
install(
FILES
- ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}-config.cmake
${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}-config-version.cmake
DESTINATION
${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}