Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Release/cmake/cpprest_find_openssl.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ function(cpprest_find_openssl)
if(NOT DEFINED OPENSSL_ROOT_DIR)
# Prefer a homebrew version of OpenSSL over the one in /usr/lib
file(GLOB OPENSSL_ROOT_DIR /usr/local/Cellar/openssl*/*)
if (NOT DEFINED${OPENSSL_ROOT_DIR})
file(GLOB OPENSSL_ROOT_DIR /opt/homebrew/Cellar/openssl*/*)
endif()
# Prefer the latest (make the latest one first)
list(REVERSE OPENSSL_ROOT_DIR)
list(GET OPENSSL_ROOT_DIR 0 OPENSSL_ROOT_DIR)
Expand Down