force clang to use libcxx

This commit is contained in:
sanctum32 2015-02-02 20:19:05 +00:00 committed by Antz
parent 48f1a0ede1
commit 8d6fdb2bbf

View file

@ -238,7 +238,7 @@ endif()
# Handle debugmode compiles (this will require further work for proper WIN32-setups)
if(UNIX)
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -stdlib=libc++")
endif()
set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -g")