From 31e877e7e4e691ed9f98603da9cd95ac59540cf3 Mon Sep 17 00:00:00 2001 From: Klez Date: Tue, 15 Jan 2019 16:07:08 +0100 Subject: [PATCH] Compilation fix on 64 bit macOS. Upgrade min SDK version Upgrade CMakeLists.txt minimum SDK version for compiling in macOS to v.10.9 "Mavericks" for 64 bit builds. Until now, make failed with this error: warning: include path for stdlibc++ headers not found; pass '-std=libc++' on the command line to use the libc++ standard library instead [-Wstdlibcxx-not-found] In file included from /Juegos/dhewm3/neo/idlib/bv/Bounds.cpp:29: /Juegos/dhewm3/neo/sys/platform.h:185:10: fatal error: 'cstddef' file not found #include ^~~~~~~~~ 1 warning and 1 error generated. --- neo/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/neo/CMakeLists.txt b/neo/CMakeLists.txt index 37ce393e..5b7f4658 100644 --- a/neo/CMakeLists.txt +++ b/neo/CMakeLists.txt @@ -197,8 +197,8 @@ if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_C_COMPILER_ID STREQUAL "Clang") add_definitions(-DMACOS_X=1) if(cpu STREQUAL "x86_64") - add_compile_options(-arch x86_64 -mmacosx-version-min=10.6) - set(ldflags "${ldflags} -arch x86_64 -mmacosx-version-min=10.6") + 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 "x86") CHECK_CXX_COMPILER_FLAG("-arch i386" cxx_has_arch_i386) if(cxx_has_arch_i386)