Fix building WITH_CXX11 on OS X.

This commit is contained in:
Felix Geyer 2015-09-05 19:03:24 +02:00
parent 98417d6465
commit d83fee89bd

View File

@ -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()