FindMatlab: Add MEX binary file suffix for Apple Silicon native Matlab

The Matlab MEX binary file suffix is distinct for Apple Silicon.
This commit is contained in:
Michael Hirsch
2022-09-14 13:20:47 -04:00
committed by Brad King
parent 31f835410e
commit f0edac914a
+5 -1
View File
@@ -1741,7 +1741,11 @@ endif()
if(APPLE)
set(_matlab_bin_prefix "mac") # i should be for intel
set(_matlab_bin_suffix_32bits "i")
set(_matlab_bin_suffix_64bits "i64")
if(CMAKE_SYSTEM_PROCESSOR STREQUAL "arm64")
set(_matlab_bin_suffix_64bits "a64")
else()
set(_matlab_bin_suffix_64bits "i64")
endif()
elseif(UNIX)
set(_matlab_bin_prefix "gln")
set(_matlab_bin_suffix_32bits "x86")