Skip to content

Commit

Permalink
to remove
Browse files Browse the repository at this point in the history
  • Loading branch information
pariterre committed Aug 14, 2024
1 parent 27e897a commit 09fb952
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions binding/matlab/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -53,20 +53,32 @@ foreach(SUFFIXES Read Write)
)
endif(CMAKE_CL_64)
elseif(APPLE)
if (CMAKE_APPLE_SILICON_PROCESSOR STREQUAL "x86_64")
# Get the current architecture
message(STATUS "Architecture: ${CMAKE_HOST_SYSTEM_PROCESSOR}")
if (NOT CMAKE_APPLE_SILICON_PROCESSOR)
execute_process(
COMMAND uname -m
OUTPUT_VARIABLE CMAKE_APPLE_SILICON_PROCESSOR
)
message(STATUS "Ye")
endif()
message(STATUS "Architecture: ${CMAKE_APPLE_SILICON_PROCESSOR}")


if (CMAKE_HOST_SYSTEM_PROCESSOR STREQUAL "x86_64")
message(STATUS "Using MATLAB for MacOS Intel")
set_target_properties(${PROJECT_NAME}_${SUFFIXES} PROPERTIES
SUFFIX ".mexmaci64"
PREFIX ""
)
elseif(CMAKE_APPLE_SILICON_PROCESSOR STREQUAL "arm64")
elseif(CMAKE_HOST_SYSTEM_PROCESSOR STREQUAL "arm64")
message(STATUS "Using MATLAB for MacOS Arm")
set_target_properties(${PROJECT_NAME}_${SUFFIXES} PROPERTIES
SUFFIX ".mexmaca64"
PREFIX ""
)
else()
message(FATAL_ERROR "Unknown architecture: ${CMAKE_APPLE_SILICON_PROCESSOR}")
message(FATAL_ERROR "Unknown architecture: ${CMAKE_HOST_SYSTEM_PROCESSOR}")
endif ()
else()
if (CMAKE_SIZEOF_VOID_P MATCHES "8")
Expand Down

0 comments on commit 09fb952

Please sign in to comment.