diff --git a/CMakeLists.txt b/CMakeLists.txt index 217c40f341..cbb2f66fc8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -94,8 +94,8 @@ if(NOT CMAKE_SIZEOF_VOID_P EQUAL 8) endif() if(APPLE AND CMAKE_OSX_ARCHITECTURES STREQUAL "arm64") - include_directories(/opt/homebrew/include) - link_directories(/opt/homebrew/lib) + list(APPEND CMAKE_PREFIX_PATH "/opt/homebrew") + list(APPEND CMAKE_SYSTEM_PREFIX_PATH "/opt/homebrew") endif() if(MSVC)