diff --git a/libmexclass/cpp/CMakeLists.txt b/libmexclass/cpp/CMakeLists.txt index f0845e4..d97fc99 100644 --- a/libmexclass/cpp/CMakeLists.txt +++ b/libmexclass/cpp/CMakeLists.txt @@ -76,7 +76,11 @@ macro(MatlabConfigureVariables) else() set(SHARED_LIB_SUFFIX "${CMAKE_SHARED_LIBRARY_SUFFIX}") if(APPLE) - set(PLATFORM_FOLDER "maci64") + if (${CMAKE_HOST_SYSTEM_PROCESSOR} STREQUAL "arm64") + set(PLATFORM_FOLDER "maca64") + else() + set(PLATFORM_FOLDER "maci64") + endif() elseif(UNIX AND NOT CYGWIN) set(PLATFORM_FOLDER "glnxa64") else()