Fixed OPENSSL_ROOT_DIR for MacOS m1 and m2 setups
This commit is contained in:
parent
09303d5b94
commit
edf99c6426
1 changed files with 5 additions and 1 deletions
|
|
@ -44,7 +44,11 @@ if(WIN32)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(APPLE)
|
if(APPLE)
|
||||||
set(OPENSSL_ROOT_DIR "/usr/local/opt/openssl")
|
if(EXISTS /usr/local/opt/openssl)
|
||||||
|
set(OPENSSL_ROOT_DIR /usr/local/opt/openssl)
|
||||||
|
elseif(EXISTS /opt/homebrew/opt/openssl)
|
||||||
|
set(OPENSSL_ROOT_DIR /opt/homebrew/opt/openssl)
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
if(USE_OPENSSL)
|
if(USE_OPENSSL)
|
||||||
find_package(OpenSSL)
|
find_package(OpenSSL)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue