summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-09-15 13:05:33 (GMT)
committerKitware Robot <kwrobot@kitware.com>2022-09-15 13:05:53 (GMT)
commit671509ff276919e1d9c7f350f5a6a8b7387c0559 (patch)
tree30f74086354f010a5e49146ff397cbe277859d69 /Modules
parenta87cb4a587a9de3399c62b170249292f6fe73ed6 (diff)
parentf0edac914a90893cd5340c42c36214d3e9491ed2 (diff)
downloadCMake-671509ff276919e1d9c7f350f5a6a8b7387c0559.zip
CMake-671509ff276919e1d9c7f350f5a6a8b7387c0559.tar.gz
CMake-671509ff276919e1d9c7f350f5a6a8b7387c0559.tar.bz2
Merge topic 'FindMatlab-macos-arm64'
f0edac914a FindMatlab: Add MEX binary file suffix for Apple Silicon native Matlab Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7673
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 ec2c345..941ab18 100644
--- a/Modules/FindMatlab.cmake
+++ b/Modules/FindMatlab.cmake
@@ -1765,7 +1765,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")