From 009261a020b9453b05e9c0b1dfb8d1676054de28 Mon Sep 17 00:00:00 2001 From: Sarah Gilmore Date: Fri, 26 Apr 2024 15:28:26 -0400 Subject: [PATCH] Set PLATFORM_FOLDER to maca64 when on a ARM-based mac machine --- libmexclass/cpp/CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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()