brpc finds openssl in /usr/local/opt/openssl, which is a macos_x86_64 path:
if(CMAKE_SYSTEM_NAME STREQUAL "Darwin" AND NOT OPENSSL_ROOT_DIR)
set(OPENSSL_ROOT_DIR
"/usr/local/opt/openssl" # Homebrew installed OpenSSL
)
endif()
But in macos_arm64, it often appears under /usr/local/Cellar/openssl@3/, which is not mentioned in the document.
Use brew --prefix openssl@3 to automatically detect and write the directory to OPENSSL_ROOT_DIR.
brpc finds openssl in
/usr/local/opt/openssl, which is a macos_x86_64 path:But in macos_arm64, it often appears under
/usr/local/Cellar/openssl@3/, which is not mentioned in the document.Use
brew --prefix openssl@3to automatically detect and write the directory toOPENSSL_ROOT_DIR.