We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cab4cf6 commit 9022d9eCopy full SHA for 9022d9e
Release/CMakeLists.txt
@@ -59,7 +59,14 @@ elseif(ANDROID)
59
elseif(UNIX) # This includes OSX
60
find_package(Boost REQUIRED COMPONENTS random chrono system thread locale regex filesystem)
61
find_package(Threads REQUIRED)
62
- find_package(OpenSSL REQUIRED)
+ if(APPLE AND NOT OPENSSL_ROOT_DIR)
63
+ # Prefer a homebrew version of OpenSSL over the one in /usr/lib
64
+ file(GLOB OPENSSL_ROOT_DIR /usr/local/Cellar/openssl/*)
65
+ # Prefer the latest (make the latest one first)
66
+ list(REVERSE OPENSSL_ROOT_DIR)
67
+ endif()
68
+ # This should prevent linking against the system provided 0.9.8y
69
+ find_package(OpenSSL 1.0.0 REQUIRED)
70
71
option(BUILD_SHARED_LIBS "Build shared Libraries." ON)
72
option(BUILD_TESTS "Build tests." ON)
0 commit comments