diff --git a/CMakeLists.txt b/CMakeLists.txt index 815763f981..511d5fd17d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -54,7 +54,11 @@ set(ENABLE_MULTIVERSION_PROTOCOL_TEST FALSE CACHE BOOL "Enable nodeos multiversi # add defaults for openssl if(APPLE AND UNIX AND "${OPENSSL_ROOT_DIR}" STREQUAL "") - set(OPENSSL_ROOT_DIR "/usr/local/opt/openssl@3;/usr/local/opt/openssl@1.1") + if(CMAKE_SYSTEM_PROCESSOR STREQUAL "arm64") + set(OPENSSL_ROOT_DIR "/opt/homebrew/opt/openssl@3;/opt/homebrew/opt/openssl@1.1") + else() + set(OPENSSL_ROOT_DIR "/usr/local/opt/openssl@3;/usr/local/opt/openssl@1.1") + endif() endif() # fc also adds these definitions to its public interface. once fc becomes the sole importer of openssl, this should be removed add_definitions(-DOPENSSL_API_COMPAT=0x10100000L -DOPENSSL_NO_DEPRECATED)