Skip to content

Commit

Permalink
checking arch flags
Browse files Browse the repository at this point in the history
  • Loading branch information
oulap authored Sep 28, 2024
1 parent 28594c6 commit ca31dcc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,11 @@ message(STATUS "ITK_DIR=${ITK_DIR} pybind11_DIR=${pybind11_DIR}")
if(DEFINED ENV{APPLE})
MESSAGE(STATUS "ARCH VARIABLE SET TO --[$ENV{APPLE_ARM64}]--")
if(ENV{APPLE_ARM64} STREQUAL "ON")
MESSAGE(STATUS "SETTING TARGET TO ARM64")
set(CMAKE_OSX_ARCHITECTURES "arm64")
add_definitions(-DARM64 -DDarwin -DPNG_ARM_NEON_OPT=0)
else()
MESSAGE(STATUS "SETTING TARGET TO X86_64")
set(CMAKE_OSX_ARCHITECTURES "x86_64")
endif()
endif()
Expand Down

0 comments on commit ca31dcc

Please sign in to comment.