From 75422d022632d81254e7cd82e1eb863e8b1b0e1e Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Tue, 9 Dec 2014 17:27:11 -0800 Subject: [PATCH] All: Fix build on OS X when the 10.7 SDK is missing, due to CMake being overzealous --- CMakeLists.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c30e77c80..d24439472 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)