summaryrefslogtreecommitdiffstats
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:52 (GMT)
commit6a15cb88eff036742061102131065e4ae0247488 (patch)
treec0534f48f3a22a8edde9ca214561d23dc01685cd
parent68540c0c9212b7ef839ae60f32fa6650e50c572c (diff)
parentf0edac914a90893cd5340c42c36214d3e9491ed2 (diff)
downloadCMake-6a15cb88eff036742061102131065e4ae0247488.zip
CMake-6a15cb88eff036742061102131065e4ae0247488.tar.gz
CMake-6a15cb88eff036742061102131065e4ae0247488.tar.bz2
Merge topic 'FindMatlab-macos-arm64' into release-3.24
f0edac914a FindMatlab: Add MEX binary file suffix for Apple Silicon native Matlab Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7673
-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")