Skip to content

Commit

Permalink
respect CMAKE_OSX_ARCHITECTURES
Browse files Browse the repository at this point in the history
cbe3d5c introduced a change to `CMakeLists.txt` that hardcodes an arch value that not only breaks Intel arch build on macOS but also does not respect a user-supplied `CMAKE_OSX_ARCHITECTURES`
  • Loading branch information
ddennedy committed Jan 8, 2024
1 parent d6ed6d2 commit b68f079
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ if(NOT WIN32)
add_definitions(-fPIC)
endif()

if(APPLE)
if(APPLE AND NOT CMAKE_OSX_ARCHITECTURES AND NOT SSE2_FOUND)
add_definitions(-march=armv8-a+fp+simd+crypto+crc)
endif(APPLE)
endif()

### ORC is not used in any active code at the moment ###
# I tried it with 0.4.14
Expand Down

0 comments on commit b68f079

Please sign in to comment.