All: Support building C++11 on 10.7

This commit is contained in:
Jeffrey Pfau 2014-12-06 08:19:03 -08:00
parent f6a7fedb28
commit 886c045a11
1 changed files with 5 additions and 0 deletions

View File

@ -109,6 +109,11 @@ else()
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)