diff --git a/CMakeLists.txt b/CMakeLists.txt index 08d847bbc..9764981ca 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -16,6 +16,10 @@ if (CMAKE_CXX_COMPILER MATCHES ".*clang") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-uninitialized") endif () +if (APPLE) + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} --stdlib=libc++") +endif () + set(CMAKE_REQUIRED_FLAGS "-std=c++0x") check_cxx_source_compiles( "#include