Skip to content

Commit

Permalink
Set PLATFORM_FOLDER to maca64 when on a ARM-based mac machine
Browse files Browse the repository at this point in the history
  • Loading branch information
sgilmore10 committed Apr 26, 2024
1 parent 20e93c3 commit 009261a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion libmexclass/cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 009261a

Please sign in to comment.