2019-03-06 16:16:52 -05:00
|
|
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
|
|
index ea9fd15..af63d1e 100644
|
|
|
|
--- a/CMakeLists.txt
|
|
|
|
+++ b/CMakeLists.txt
|
|
|
|
@@ -7,7 +7,7 @@
|
|
|
|
cmake_minimum_required(VERSION 3.0 FATAL_ERROR)
|
|
|
|
|
|
|
|
# Include cmake modules
|
|
|
|
-list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
|
|
|
|
+# list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
|
|
|
|
|
|
|
|
include(GenerateExportHeader)
|
|
|
|
|
|
|
|
diff --git a/source/cppfs/CMakeLists.txt b/source/cppfs/CMakeLists.txt
|
|
|
|
index aa37eda..d29176a 100644
|
|
|
|
--- a/source/cppfs/CMakeLists.txt
|
|
|
|
+++ b/source/cppfs/CMakeLists.txt
|
2023-06-29 23:32:40 +02:00
|
|
|
@@ -4,9 +4,9 @@
|
2019-03-06 16:16:52 -05:00
|
|
|
#
|
|
|
|
|
2023-06-29 23:32:40 +02:00
|
|
|
-find_package(LibSSH2)
|
2019-03-06 16:16:52 -05:00
|
|
|
-find_package(LibCrypto)
|
2024-10-22 07:05:39 +02:00
|
|
|
+find_package(LibSSH2 NAMES libssh2)
|
2019-03-06 16:16:52 -05:00
|
|
|
find_package(ZLIB)
|
|
|
|
find_package(OpenSSL)
|
2023-06-29 23:32:40 +02:00
|
|
|
+set(LibCrypto_FOUND "${OpenSSL_FOUND}")
|
2019-03-06 16:16:52 -05:00
|
|
|
|
2023-06-29 23:32:40 +02:00
|
|
|
if (LibSSH2_FOUND AND LibCrypto_FOUND AND ZLIB_FOUND AND OpenSSL_FOUND)
|
2019-03-06 16:16:52 -05:00
|
|
|
set(SSH_DEPS_MET TRUE)
|
2023-06-29 23:32:40 +02:00
|
|
|
@@ -207,10 +207,10 @@ target_link_libraries(${target}
|
2019-03-06 16:16:52 -05:00
|
|
|
if (OPTION_BUILD_SSH_BACKEND)
|
|
|
|
target_link_libraries(${target}
|
|
|
|
PRIVATE
|
|
|
|
- ${OPENSSL_LIBRARIES}
|
|
|
|
- ${LIBSSH2_LIBRARY}
|
|
|
|
- ${LIBCRYPTO_LIBRARY}
|
|
|
|
- ${ZLIB_LIBRARY}
|
2023-06-29 23:32:40 +02:00
|
|
|
+ OpenSSL::SSL
|
2024-10-22 07:05:39 +02:00
|
|
|
+ libssh2::libssh2
|
2023-06-29 23:32:40 +02:00
|
|
|
+ OpenSSL::Crypto
|
2019-03-06 16:16:52 -05:00
|
|
|
+ ZLIB::ZLIB
|
|
|
|
)
|
|
|
|
|
|
|
|
if("${CMAKE_SYSTEM_NAME}" MATCHES "Windows")
|