mirror of
https://github.com/dhewm/dhewm3.git
synced 2025-03-23 11:11:01 +00:00
Enable building on Apple Silicon
This commit is contained in:
parent
c4c7236352
commit
bbe30e300c
1 changed files with 3 additions and 0 deletions
|
@ -230,6 +230,9 @@ if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_C_COMPILER_ID STREQUAL "Clang")
|
|||
if(cpu STREQUAL "x86_64")
|
||||
add_compile_options(-arch x86_64 -mmacosx-version-min=10.9)
|
||||
set(ldflags "${ldflags} -arch x86_64 -mmacosx-version-min=10.9")
|
||||
elseif(cpu STREQUAL "arm64")
|
||||
add_compile_options(-arch arm64 -mmacosx-version-min=11.0)
|
||||
set(ldflags "${ldflags} -arch arm64 -mmacosx-version-min=11.0")
|
||||
elseif(cpu STREQUAL "x86")
|
||||
CHECK_CXX_COMPILER_FLAG("-arch i386" cxx_has_arch_i386)
|
||||
if(cxx_has_arch_i386)
|
||||
|
|
Loading…
Reference in a new issue