From 263693577c7ff12d5d11131f1936838ba06e3ed9 Mon Sep 17 00:00:00 2001 From: Sarah Gilmore <74676073+sgilmore10@users.noreply.github.com> Date: Fri, 26 Apr 2024 15:42:20 -0400 Subject: [PATCH] Closes #77: Add support for `maca64` to `CMakeLists.txt` (#79) --- 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()