diff --git a/CMakeLists.txt b/CMakeLists.txt index 0272ccd8c..575ca31e4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -118,6 +118,9 @@ endif() if (WITH_CXX11) add_gcc_compiler_cxxflags("-std=c++0x") add_gcc_compiler_cflags("-ansi") + if(APPLE) + add_gcc_compiler_cxxflags("-stdlib=libc++") + endif() else() add_gcc_compiler_flags("-ansi") endif()