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

Commitfb6a375

Browse files
committed
OSX: update OpenSSL detection.Closes#690
- Cherry-pick'sacb020b 0.13-release- References#691
1 parent48e315d commitfb6a375

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

‎CMakeLists.txt‎

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,23 @@ set(Boost_USE_MULTI_THREADED ON)
4848
find_package(Boost 1.58.0 REQUIRED COMPONENTSsystem)
4949

5050
if (CPP-NETLIB_ENABLE_HTTPS)
51-
find_package( OpenSSL )
51+
if (APPLE)
52+
# If we're on OSX check for Homebrew's copy of OpenSSL instead of Apple's
53+
if (NOT OpenSSL_DIR)
54+
find_program(HOMEBREW brew)
55+
if (HOMEBREWSTREQUAL"HOMEBREW-NOTFOUND")
56+
message(WARNING"Homebrew not found: not using Homebrew's OpenSSL")
57+
if (NOT OPENSSL_ROOT_DIR)
58+
message(WARNING"Use -DOPENSSL_ROOT_DIR for non-Apple OpenSSL")
59+
endif()
60+
else()
61+
execute_process(COMMAND brew --prefix openssl
62+
OUTPUT_VARIABLE OPENSSL_ROOT_DIR
63+
OUTPUT_STRIP_TRAILING_WHITESPACE)
64+
endif()
65+
endif()
66+
endif()
67+
find_package(OpenSSL)
5268
endif()
5369

5470
find_package( Threads )

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp