Skip to content

Commit 663ac3e

Browse files
committed
default non fat builds to build system processor
and only message when explicitly setting
1 parent 36912f0 commit 663ac3e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ if (APPLE)
1919
if(C74_BUILD_FAT)
2020
set(CMAKE_OSX_ARCHITECTURES "x86_64;arm64" CACHE STRING "macOS architecture" FORCE)
2121
else()
22-
set(CMAKE_OSX_ARCHITECTURES "x86_64" CACHE STRING "macOS architecture" FORCE)
22+
set(CMAKE_OSX_ARCHITECTURES ${CMAKE_SYSTEM_PROCESSOR} CACHE STRING "macOS architecture" FORCE)
2323
endif()
24+
message("CMAKE_OSX_ARCHITECTURES set to ${CMAKE_OSX_ARCHITECTURES}")
2425
endif()
25-
message("CMAKE_OSX_ARCHITECTURES set to ${CMAKE_OSX_ARCHITECTURES}")
2626
endif()
2727

2828
# Fetch the correct version of the min-api

0 commit comments

Comments
 (0)