Skip to content

Commit

Permalink
Lower macOS requirement
Browse files Browse the repository at this point in the history
  • Loading branch information
tomkidd authored and DanielGibson committed Aug 3, 2024
1 parent 6679490 commit be2b788
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions neo/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

2 comments on commit be2b788

@xmansch
Copy link

@xmansch xmansch commented on be2b788 Aug 3, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello! i have problem when compile in this settings:
/Users/mansch/Downloads/dhewm3/neo/sys/platform.h:242:10: fatal error: 'cstddef' file not found

only one way to resolve this issue compile with

-mmacosx-version-min=10.9

os 11.7.10

@xmansch
Copy link

@xmansch xmansch commented on be2b788 Aug 3, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tomkidd please return previous version
or add compile logic

Please sign in to comment.