mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-08 15:19:51 -05:00
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:
committed by
Brad King
parent
31f835410e
commit
f0edac914a
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user