2015-12-26 01:04:19 +01:00
|
|
|
diff -ru libssh-0.7.2/CMakeLists.txt patched/CMakeLists.txt
|
|
|
|
--- libssh-0.7.2/CMakeLists.txt 2015-09-16 08:44:35.000000000 +0200
|
2016-01-04 20:59:07 +01:00
|
|
|
+++ patched/CMakeLists.txt 2015-12-26 16:06:48.989612824 +0100
|
|
|
|
@@ -84,8 +84,8 @@
|
2015-12-26 01:04:19 +01:00
|
|
|
add_subdirectory(src)
|
|
|
|
|
|
|
|
# pkg-config file
|
|
|
|
-if (UNIX)
|
2016-01-04 20:59:07 +01:00
|
|
|
-configure_file(libssh.pc.cmake ${CMAKE_CURRENT_BINARY_DIR}/libssh.pc)
|
2015-12-26 01:04:19 +01:00
|
|
|
+if (UNIX OR MINGW)
|
2016-01-04 20:59:07 +01:00
|
|
|
+configure_file(libssh.pc.cmake ${CMAKE_CURRENT_BINARY_DIR}/libssh.pc @ONLY)
|
2015-12-26 01:04:19 +01:00
|
|
|
install(
|
|
|
|
FILES
|
2016-01-04 20:59:07 +01:00
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/libssh.pc
|
|
|
|
@@ -97,7 +97,7 @@
|
|
|
|
)
|
|
|
|
|
|
|
|
if (LIBSSH_THREADS)
|
|
|
|
- configure_file(libssh_threads.pc.cmake ${CMAKE_CURRENT_BINARY_DIR}/libssh_threads.pc)
|
|
|
|
+ configure_file(libssh_threads.pc.cmake ${CMAKE_CURRENT_BINARY_DIR}/libssh_threads.pc @ONLY)
|
|
|
|
install(
|
|
|
|
FILES
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/libssh.pc
|
2015-12-26 01:04:19 +01:00
|
|
|
@@ -108,7 +108,7 @@
|
|
|
|
pkgconfig
|
|
|
|
)
|
|
|
|
endif (LIBSSH_THREADS)
|
|
|
|
-endif (UNIX)
|
|
|
|
+endif (UNIX OR MINGW)
|
|
|
|
|
|
|
|
# cmake config files
|
|
|
|
set(LIBSSH_LIBRARY_NAME ${CMAKE_SHARED_LIBRARY_PREFIX}ssh${CMAKE_SHARED_LIBRARY_SUFFIX})
|