2016-12-07 16:04:49 +08:00
|
|
|
diff --git a/CMake/FindLibSSH2.cmake b/CMake/FindLibSSH2.cmake
|
2018-09-05 22:13:31 +08:00
|
|
|
index 84822dba7..0d6219425 100644
|
2016-12-07 16:04:49 +08:00
|
|
|
--- a/CMake/FindLibSSH2.cmake
|
|
|
|
+++ b/CMake/FindLibSSH2.cmake
|
2018-09-05 22:13:31 +08:00
|
|
|
@@ -12,7 +12,7 @@ endif()
|
|
|
|
find_path(LIBSSH2_INCLUDE_DIR libssh2.h
|
2016-12-07 16:04:49 +08:00
|
|
|
)
|
|
|
|
|
2018-09-05 22:13:31 +08:00
|
|
|
-find_library(LIBSSH2_LIBRARY NAMES ssh2
|
|
|
|
+find_library(LIBSSH2_LIBRARY NAMES ssh2 libssh2
|
2016-12-07 16:04:49 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
if(LIBSSH2_INCLUDE_DIR)
|
2017-12-05 21:57:14 +08:00
|
|
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2018-09-05 22:13:31 +08:00
|
|
|
index e6dbb73f1..1e2ff138e 100644
|
2017-12-05 21:57:14 +08:00
|
|
|
--- a/CMakeLists.txt
|
|
|
|
+++ b/CMakeLists.txt
|
2018-09-05 22:13:31 +08:00
|
|
|
@@ -1144,7 +1144,9 @@ function(TRANSFORM_MAKEFILE_INC INPUT_FILE OUTPUT_FILE)
|
2017-12-05 21:57:14 +08:00
|
|
|
|
|
|
|
endfunction()
|
|
|
|
|
|
|
|
-if(WIN32 AND NOT CYGWIN)
|
|
|
|
+if(MSVC)
|
2018-09-05 22:13:31 +08:00
|
|
|
+ set(CURL_INSTALL_CMAKE_DIR share/curl)
|
2017-12-05 21:57:14 +08:00
|
|
|
+elseif(WIN32 AND NOT CYGWIN)
|
2018-09-05 22:13:31 +08:00
|
|
|
set(CURL_INSTALL_CMAKE_DIR CMake)
|
2017-12-05 21:57:14 +08:00
|
|
|
else()
|
2018-09-05 22:13:31 +08:00
|
|
|
set(CURL_INSTALL_CMAKE_DIR lib/cmake/curl)
|