mirror of https://github.com/vitalif/openscad
Mac: Add -stdlib=libc++ to testsuite on 10.9 and later
parent
8793fed7db
commit
05e2a1edf1
|
@ -17,6 +17,7 @@ IF (APPLE)
|
|||
EXECUTE_PROCESS(COMMAND sw_vers -productVersion OUTPUT_VARIABLE MACOSX_VERSION)
|
||||
IF (NOT ${MACOSX_VERSION} VERSION_LESS "10.9.0")
|
||||
message("Detected Maverick (10.9) or later")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++")
|
||||
set(CMAKE_C_COMPILER "clang")
|
||||
set(CMAKE_CXX_COMPILER "clang++")
|
||||
# Somehow, since we build dependencies for 10.7, we need to also build executables
|
||||
|
|
Loading…
Reference in New Issue