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 32fc4a99b9
commit 75422d0226
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)