From 43854878bd8e5326da7f4f629d8cc3879985aecb Mon Sep 17 00:00:00 2001 From: lqx Date: Fri, 26 Jul 2024 20:30:12 +0800 Subject: [PATCH] add openSSL_ROOT_DIR check on macos --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e8c6909c6e..d2a140a7a2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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 )