Skip to content

Commit

Permalink
limit the cross-compilation directive to APPLE builds only
Browse files Browse the repository at this point in the history
  • Loading branch information
slayoo committed Nov 4, 2023
1 parent d3b02da commit ec61f4b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ if (NOT EXISTS "${CMAKE_SOURCE_DIR}/gitmodules/pybind11/include/pybind11/pybind1
message(FATAL_ERROR "git submodules not initialised.\n Please run `git submodule update --init`")
endif()

set(CMAKE_OSX_ARCHITECTURES "arm64;x86_64" CACHE STRING "" FORCE)
if (APPLE)
set(CMAKE_OSX_ARCHITECTURES "arm64;x86_64" CACHE STRING "" FORCE)
endif()

project(_PyPartMC LANGUAGES C CXX Fortran)

Expand Down

0 comments on commit ec61f4b

Please sign in to comment.