We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eedd031 commit b8c47f9Copy full SHA for b8c47f9
CMakeLists.txt
@@ -49,7 +49,15 @@ set(Boost_USE_MULTI_THREADED ON)
49
find_package(Boost 1.58.0 REQUIRED COMPONENTS system thread)
50
51
if (CPP-NETLIB_ENABLE_HTTPS)
52
- find_package( OpenSSL )
+ if (APPLE)
53
+ # If we're on OS X check for Homebrew's copy of OpenSSL instead of Apple's
54
+ if (NOT OpenSSL_DIR)
55
+ execute_process (COMMAND brew --prefix openssl
56
+ OUTPUT_VARIABLE OPENSSL_ROOT_DIR
57
+ OUTPUT_STRIP_TRAILING_WHITESPACE)
58
+ endif()
59
60
+ find_package(OpenSSL)
61
endif()
62
63
find_package( Threads )
0 commit comments