diff --git a/CMakeLists.txt b/CMakeLists.txt index cfb1d2fdb0..3da1919857 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -20,7 +20,12 @@ include_directories( if(UNIX AND NOT APPLE) set(DEPENDS_PREFIX depends/x86_64-pc-linux-gnu) elseif(APPLE) - set(DEPENDS_PREFIX depends/x86_64-apple-darwin19) + EXECUTE_PROCESS( COMMAND uname -m COMMAND tr -d '\n' OUTPUT_VARIABLE ARCHITECTURE ) + if( ${ARCHITECTURE} STREQUAL "arm64" ) + set(DEPENDS_PREFIX depends/aarch64-apple-darwin21.2.0) + else() + set(DEPENDS_PREFIX depends/x86_64-apple-darwin19) + endif() elseif(WIN32) set(DEPENDS_PREFIX depends/x86_64-w64-mingw32) endif()