All: Fix build on OS X when the 10.7 SDK is missing, due to CMake being overzealous
Jeffrey Pfau jeffrey@endrift.com
Tue, 09 Dec 2014 17:27:11 -0800
1 files changed,
1 insertions(+),
2 deletions(-)
jump to
M
CMakeLists.txt
→
CMakeLists.txt
@@ -114,8 +114,7 @@ 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++") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mmacosx-version-min=10.7 -stdlib=libc++") endif() if(BUILD_BBB OR BUILD_RASPI)