All: Fix build on OS X when the 10.7 SDK is missing, due to CMake being overzealous

This commit is contained in:
Jeffrey Pfau 2014-12-09 17:27:11 -08:00
parent 63a439406c
commit f97b9632eb
1 changed files with 1 additions and 2 deletions

View File

@ -114,8 +114,7 @@ else()
endif()
if(APPLE)
set(CMAKE_OSX_DEPLOYMENT_TARGET "10.7")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mmacosx-version-min=10.7 -stdlib=libc++")
endif()
if(BUILD_BBB OR BUILD_RASPI)