Lower macOS requirement

This commit is contained in:
Tom Kidd 2024-08-02 22:17:52 -05:00 committed by Daniel Gibson
parent 6679490f0a
commit be2b788c67

View file

@ -385,11 +385,11 @@ if(D3_COMPILER_IS_GCC_OR_CLANG)
add_definitions(-DMACOS_X=1)
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")
add_compile_options(-arch x86_64 -mmacosx-version-min=10.7)
set(ldflags "${ldflags} -arch x86_64 -mmacosx-version-min=10.7")
elseif(cpu STREQUAL "arm64")
add_compile_options(-arch arm64 -mmacosx-version-min=11.0)
set(ldflags "${ldflags} -arch arm64 -mmacosx-version-min=11.0")
add_compile_options(-arch arm64 -mmacosx-version-min=10.7)
set(ldflags "${ldflags} -arch arm64 -mmacosx-version-min=10.7")
elseif(cpu STREQUAL "x86")
CHECK_CXX_COMPILER_FLAG("-arch i386" cxx_has_arch_i386)
if(cxx_has_arch_i386)