Skip to content

Commit

Permalink
Fix/Mac: Build x64/arm bundle again
Browse files Browse the repository at this point in the history
  • Loading branch information
TwinFan committed Feb 3, 2024
1 parent f7c3333 commit 5e29d3a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ if(DEFINED ENV{platform})
elseif($ENV{platform} STREQUAL "mac-arm")
message (" Building cross-platform for mac/arm64")
set(CMAKE_OSX_ARCHITECTURES "arm64" CACHE STRING "Archs to build")
elseif($ENV{platform} STREQUAL "mac")
message (" Building cross-platform for both mac/x86_64 and mac/arm64")
set(CMAKE_OSX_ARCHITECTURES "x86_64;arm64" CACHE STRING "Archs to build")
endif()
else()
# No 'platform' defined could mean running from command line, assume we build universal image in one go via XCode
Expand Down

0 comments on commit 5e29d3a

Please sign in to comment.