1
0
Fork 0

Force libc++ explicitly on Clang

This commit is contained in:
James Turner 2015-02-11 15:48:33 +00:00
parent 6970ea69a8
commit 211a4982c8

View file

@ -337,6 +337,9 @@ endif(CMAKE_COMPILER_IS_GNUCXX)
if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
set (WARNING_FLAGS_CXX "-Wall -Wno-overloaded-virtual")
set(CMAKE_XCODE_ATTRIBUTE_CLANG_CXX_LIBRARY "libc++")
set(CMAKE_XCODE_ATTRIBUTE_CLANG_CXX_LANGUAGE_STANDARD "c++11")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -stdlib=libc++")
set (WARNING_FLAGS_C "-Wall")
endif()