summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorMichael Hirsch <scivision@users.noreply.gitlab.kitware.com>2022-09-14 17:20:47 (GMT)
committerBrad King <brad.king@kitware.com>2022-09-14 18:05:35 (GMT)
commitf0edac914a90893cd5340c42c36214d3e9491ed2 (patch)
tree0717afe3379aa7ab579f71090bf710294a1cbe71 /Modules
parent31f835410efeea50acd43512eb9e5646a26ea177 (diff)
downloadCMake-f0edac914a90893cd5340c42c36214d3e9491ed2.zip
CMake-f0edac914a90893cd5340c42c36214d3e9491ed2.tar.gz
CMake-f0edac914a90893cd5340c42c36214d3e9491ed2.tar.bz2
FindMatlab: Add MEX binary file suffix for Apple Silicon native Matlab
The Matlab MEX binary file suffix is distinct for Apple Silicon.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/FindMatlab.cmake6
1 files changed, 5 insertions, 1 deletions
diff --git a/Modules/FindMatlab.cmake b/Modules/FindMatlab.cmake
index 48ef5eb..d45125c 100644
--- a/Modules/FindMatlab.cmake
+++ b/Modules/FindMatlab.cmake
@@ -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")