cmake: allow custom openssl path on macOS

This commit is contained in:
selsta 2020-06-25 19:52:10 +02:00
parent 93257997bd
commit 6111689cfa
No known key found for this signature in database
GPG Key ID: 2EA0A99A8B07AE5E
2 changed files with 2 additions and 2 deletions

View File

@ -426,7 +426,7 @@ endif ()
if (APPLE AND NOT IOS) if (APPLE AND NOT IOS)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=x86-64 -fvisibility=default -std=c++11") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=x86-64 -fvisibility=default -std=c++11")
if (NOT OpenSSL_DIR) if (NOT OPENSSL_ROOT_DIR)
EXECUTE_PROCESS(COMMAND brew --prefix openssl EXECUTE_PROCESS(COMMAND brew --prefix openssl
OUTPUT_VARIABLE OPENSSL_ROOT_DIR OUTPUT_VARIABLE OPENSSL_ROOT_DIR
OUTPUT_STRIP_TRAILING_WHITESPACE) OUTPUT_STRIP_TRAILING_WHITESPACE)

View File

@ -55,7 +55,7 @@ SET(Boost_NO_SYSTEM_PATHS ON)
SET(Boost_USE_STATIC_LIBS ON) SET(Boost_USE_STATIC_LIBS ON)
SET(Boost_USE_STATIC_RUNTIME ON) SET(Boost_USE_STATIC_RUNTIME ON)
SET(OpenSSL_DIR @prefix@/lib) SET(OPENSSL_ROOT_DIR @prefix@)
SET(ARCHITECTURE @arch@) SET(ARCHITECTURE @arch@)
# for libraries and headers in the target directories # for libraries and headers in the target directories