Skip to content

Commit

Permalink
add openSSL_ROOT_DIR check on macos (#2716)
Browse files Browse the repository at this point in the history
  • Loading branch information
lqxhub authored Jul 29, 2024
1 parent 5ae6ad6 commit fc56be6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ if(WITH_BORINGSSL)
find_package(BoringSSL)
include_directories(${BORINGSSL_INCLUDE_DIR})
else()
if(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
if(CMAKE_SYSTEM_NAME STREQUAL "Darwin" AND NOT OPENSSL_ROOT_DIR)
set(OPENSSL_ROOT_DIR
"/usr/local/opt/openssl" # Homebrew installed OpenSSL
)
Expand Down

0 comments on commit fc56be6

Please sign in to comment.