From 8d6fdb2bbff906d0eda56a5b78f6dc860f8ec339 Mon Sep 17 00:00:00 2001 From: sanctum32 Date: Mon, 2 Feb 2015 20:19:05 +0000 Subject: [PATCH] force clang to use libcxx --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 38b52f449..225f0f439 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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")