2020-02-15 00:39:47 +00:00
|
|
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2021-05-23 00:55:42 +01:00
|
|
|
index c1e78d1d..13639ba1 100644
|
2020-02-15 00:39:47 +00:00
|
|
|
--- a/CMakeLists.txt
|
|
|
|
+++ b/CMakeLists.txt
|
2021-05-23 00:55:42 +01:00
|
|
|
@@ -328,14 +328,7 @@ if (${CMAKE_SYSTEM_NAME} MATCHES "Windows")
|
2020-02-15 00:39:47 +00:00
|
|
|
${OPENSSL_ROOT}/lib/libssl.lib
|
|
|
|
${OPENSSL_ROOT}/lib/libcrypto.lib
|
|
|
|
)
|
|
|
|
-elseif (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
|
|
|
- set (OPENSSL_ROOT /usr/local/opt/openssl)
|
|
|
|
- include_directories (BEFORE SYSTEM ${OPENSSL_ROOT}/include)
|
|
|
|
- set (OPENSSL_LIBS
|
|
|
|
- ${OPENSSL_ROOT}/lib/libssl.a
|
|
|
|
- ${OPENSSL_ROOT}/lib/libcrypto.a
|
|
|
|
- )
|
2021-05-23 00:55:42 +01:00
|
|
|
-elseif (${CMAKE_SYSTEM_NAME} MATCHES "Linux|.*BSD|DragonFly")
|
|
|
|
+elseif (${CMAKE_SYSTEM_NAME} MATCHES "Linux|Darwin|.*BSD|DragonFly")
|
2020-02-15 00:39:47 +00:00
|
|
|
set (OPENSSL_LIBS ssl crypto)
|
|
|
|
else()
|
|
|
|
message (FATAL_ERROR "Couldn't find OpenSSL")
|