Build macOS release as Universal Binary (#267)
* Update CMakeLists.txt * Edit output filename to reflect building as Universal binary
This commit is contained in:
parent
4a18bf3881
commit
9a9a18999d
|
|
@ -24,6 +24,6 @@ jobs:
|
|||
- name: Publish packaged artifacts
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: spaghetti-mac-x64
|
||||
name: spaghetti-mac-universal
|
||||
path: spaghetti-release
|
||||
retention-days: 1
|
||||
|
|
|
|||
|
|
@ -27,6 +27,9 @@ endif()
|
|||
# Set the minimum version of CMake and the deployment target for macOS
|
||||
set(CMAKE_OSX_DEPLOYMENT_TARGET "10.15" CACHE STRING "Minimum OS X deployment version")
|
||||
|
||||
# Set CMake to build as Universal Binary for macOS
|
||||
set(CMAKE_OSX_ARCHITECTURES=arm64;x86_64)
|
||||
|
||||
# Set the C++ standard and enable the MSVC parallel build option
|
||||
set(CMAKE_CXX_STANDARD 20 CACHE STRING "The C++ standard to use")
|
||||
set(CMAKE_C_STANDARD 11 CACHE STRING "The C standard to use")
|
||||
|
|
|
|||
Loading…
Reference in New Issue