updated on Thu Jan 19 12:17:07 UTC 2012
[aur-mirror.git] / kftpgrabber-svn / FindLibSSH2.patch
blob41b515f946c558398b5e5f30a2816ced94797a7d
1 diff -Naur kftpgrabber.orig/cmake/CMakeLists.txt kftpgrabber/cmake/CMakeLists.txt
2 --- /dev/null
3 +++ kftpgrabber/cmake/CMakeLists.txt 2010-02-15 01:18:26.939787270 +0100
4 @@ -0,0 +1 @@
5 +add_subdirectory(modules)
6 diff -Naur kftpgrabber.orig/cmake/modules/CMakeLists.txt kftpgrabber/cmake/modules/CMakeLists.txt
7 --- /dev/null
8 +++ kftpgrabber/cmake/modules/CMakeLists.txt 2010-02-15 01:19:52.667278692 +0100
9 @@ -0,0 +1,5 @@
10 +set(cmakeFiles
11 + FindLibSSH2.cmake
14 +install(FILES ${cmakeFiles} DESTINATION ${DATA_INSTALL_DIR}/cmake/modules)
15 diff -Naur kftpgrabber.orig/cmake/modules/FindLibSSH2.cmake kftpgrabber/cmake/modules/FindLibSSH2.cmake
16 --- /dev/null
17 +++ kftpgrabber/cmake/modules/FindLibSSH2.cmake 1970-01-01 10:13:08.000000000 +0100
18 @@ -0,0 +1,19 @@
19 +# - Try to find the libssh2 library
20 +# Once done this will define
22 +# LIBSSH2_FOUND - system has the libssh2 library
23 +# LIBSSH2_INCLUDE_DIR - the libssh2 include directory
24 +# LIBSSH2_LIBRARY - the libssh2 library name
26 +if (LIBSSH2_INCLUDE_DIR AND LIBSSH2_LIBRARY)
27 +set(LibSSH2_FIND_QUIETLY TRUE)
28 +endif (LIBSSH2_INCLUDE_DIR AND LIBSSH2_LIBRARY)
30 +FIND_PATH(LIBSSH2_INCLUDE_DIR libssh2.h)
32 +FIND_LIBRARY(LIBSSH2_LIBRARY NAMES ssh2)
34 +include(FindPackageHandleStandardArgs)
35 +FIND_PACKAGE_HANDLE_STANDARD_ARGS(LibSSH2 DEFAULT_MSG LIBSSH2_INCLUDE_DIR LIBSSH2_LIBRARY)
37 +MARK_AS_ADVANCED(LIBSSH2_INCLUDE_DIR LIBSSH2_LIBRARY)