aboutsummaryrefslogtreecommitdiff
path: root/libssh-config.cmake.in
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 /libssh-config.cmake.in
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 'libssh-config.cmake.in')
-rw-r--r--libssh-config.cmake.in15
1 files changed, 0 insertions, 15 deletions
diff --git a/libssh-config.cmake.in b/libssh-config.cmake.in
deleted file mode 100644
index 11388f00..00000000
--- a/libssh-config.cmake.in
+++ /dev/null
@@ -1,15 +0,0 @@
-@PACKAGE_INIT@
-
-if (EXISTS "${CMAKE_CURRENT_LIST_DIR}/CMakeCache.txt")
- # In tree build
- set_and_check(LIBSSH_INCLUDE_DIR "${CMAKE_CURRENT_LIST_DIR}/include")
- set_and_check(LIBSSH_LIBRARIES "${CMAKE_CURRENT_LIST_DIR}/lib/@LIBSSH_LIBRARY_NAME@")
-else()
- set_and_check(LIBSSH_INCLUDE_DIR "@PACKAGE_INCLUDE_INSTALL_DIR@")
- set_and_check(LIBSSH_LIBRARIES "@PACKAGE_LIB_INSTALL_DIR@/@LIBSSH_LIBRARY_NAME@")
-endif()
-
-# For backward compatibility
-set(LIBSSH_LIBRARY ${LIBSSH_LIBRARIES})
-
-mark_as_advanced(LIBSSH_LIBRARIES LIBSSH_LIBRARY LIBSSH_INCLUDE_DIR)