Skip to content

Commit

Permalink
Merge pull request #27 from luihabl/main
Browse files Browse the repository at this point in the history
Building universal binary of platform lib on macOS
  • Loading branch information
NoelFB committed Oct 6, 2023
2 parents 5046cdb + 20016b3 commit 52971b1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Platform/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ if (WIN32)
option(FOSTER_D3D11_ENABLED "Make D3D11 Renderer available" ON)
endif()

# Set flag for building a universal binary on macOS
if(APPLE)
set(CMAKE_OSX_ARCHITECTURES "arm64;x86_64")
endif()

# Default to Release build for library
if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Release)
Expand Down

0 comments on commit 52971b1

Please sign in to comment.