All: Support building C++11 on 10.7
Jeffrey Pfau jeffrey@endrift.com
Sat, 06 Dec 2014 08:19:03 -0800
1 files changed,
5 insertions(+),
0 deletions(-)
jump to
M
CMakeLists.txt
→
CMakeLists.txt
@@ -109,6 +109,11 @@ file(GLOB OS_SRC ${CMAKE_SOURCE_DIR}/src/platform/posix/*.c)
source_group("POSIX-specific code" FILES ${OS_SRC}) endif() +if(APPLE) + set(CMAKE_OSX_DEPLOYMENT_TARGET "10.7") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++") +endif() + if(BUILD_BBB OR BUILD_RASPI) enable_language(ASM) if(NOT BUILD_EGL)