Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb8c47f9

Browse files
committed
OSX: fix OpenSSL detection for 10.11.Fixes#690
1 parenteedd031 commitb8c47f9

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

‎CMakeLists.txt‎

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,15 @@ set(Boost_USE_MULTI_THREADED ON)
4949
find_package(Boost 1.58.0 REQUIRED COMPONENTSsystem thread)
5050

5151
if (CPP-NETLIB_ENABLE_HTTPS)
52-
find_package( OpenSSL )
52+
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+
endif()
60+
find_package(OpenSSL)
5361
endif()
5462

5563
find_package( Threads )

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp