[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: [PATCH] kftpgrabber - Add FindLibSSH2 cmake module
From: Andrea Scarpino <andrea () archlinux ! org>
Date: 2010-03-08 17:20:39
Message-ID: 201003081820.40584.andrea () archlinux ! org
[Download RAW message or body]
Hi,
this add FindLibSSH2.cmake into kftpgrabber/cmake/modules/.
It is not installed by libssh2, so IMHO kftpgrabber should use its version.
--
Andrea
["FindLibSSH2.patch" (text/x-patch)]
diff -Naur kftpgrabber.orig/cmake/CMakeLists.txt kftpgrabber/cmake/CMakeLists.txt
--- /dev/null
+++ kftpgrabber/cmake/CMakeLists.txt 2010-02-15 01:18:26.939787270 +0100
@@ -0,0 +1 @@
+add_subdirectory(modules)
diff -Naur kftpgrabber.orig/cmake/modules/CMakeLists.txt kftpgrabber/cmake/modules/CMakeLists.txt
--- /dev/null
+++ kftpgrabber/cmake/modules/CMakeLists.txt 2010-02-15 01:19:52.667278692 +0100
@@ -0,0 +1,5 @@
+set(cmakeFiles
+ FindLibSSH2.cmake
+)
+
+install(FILES ${cmakeFiles} DESTINATION ${DATA_INSTALL_DIR}/cmake/modules)
diff -Naur kftpgrabber.orig/cmake/modules/FindLibSSH2.cmake kftpgrabber/cmake/modules/FindLibSSH2.cmake
--- /dev/null
+++ kftpgrabber/cmake/modules/FindLibSSH2.cmake 1970-01-01 10:13:08.000000000 +0100
@@ -0,0 +1,19 @@
+# - Try to find the libssh2 library
+# Once done this will define
+#
+# LIBSSH2_FOUND - system has the libssh2 library
+# LIBSSH2_INCLUDE_DIR - the libssh2 include directory
+# LIBSSH2_LIBRARY - the libssh2 library name
+
+if (LIBSSH2_INCLUDE_DIR AND LIBSSH2_LIBRARY)
+set(LibSSH2_FIND_QUIETLY TRUE)
+endif (LIBSSH2_INCLUDE_DIR AND LIBSSH2_LIBRARY)
+
+FIND_PATH(LIBSSH2_INCLUDE_DIR libssh2.h)
+
+FIND_LIBRARY(LIBSSH2_LIBRARY NAMES ssh2)
+
+include(FindPackageHandleStandardArgs)
+FIND_PACKAGE_HANDLE_STANDARD_ARGS(LibSSH2 DEFAULT_MSG LIBSSH2_INCLUDE_DIR LIBSSH2_LIBRARY)
+
+MARK_AS_ADVANCED(LIBSSH2_INCLUDE_DIR LIBSSH2_LIBRARY)
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic