[kftpgrabber] [PATCH] add FindLibSSH2.cmake file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all,
kftpgrabber cmake fails because it cannot find FindLibSSH2.cmake. That file is 
not included in libssh2 source tarball, neither in kftpgrabber on trunk.
I did this patch that add that file, can you apply?

Thanks

-- 
Andrea `bash` Scarpino
Arch Linux Developer
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)
___________________________________________________
This message is from the kde mailing list.
Account management:  https://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.

[Index of Archives]     [Trinity (TDE) Desktop Users]     [Fedora KDE]     [Fedora Desktop]     [Linux Kernel]     [Gimp]     [GIMP for Windows]     [Gnome]     [Yosemite Hiking]
  Powered by Linux