From d83fee89bd138506834dc3f1bdd1a720d546028d Mon Sep 17 00:00:00 2001 From: Felix Geyer Date: Sat, 5 Sep 2015 19:03:24 +0200 Subject: [PATCH] Fix building WITH_CXX11 on OS X. --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) 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()