From c947d41d8649fc8f9817de6ca367a902cc1fdb5c Mon Sep 17 00:00:00 2001 From: James Turner Date: Tue, 17 Mar 2015 16:56:52 +0000 Subject: [PATCH] Set min-macos-version for CMake 3.2.1 --- CMakeLists.txt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 50d2c1034..ab74f68d6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -109,10 +109,8 @@ IF(APPLE) find_library(COCOA_LIBRARY Cocoa) list(APPEND PLATFORM_LIBS ${COCOA_LIBRARY} ${CORESERVICES_LIBRARY}) - # this should be handled by setting CMAKE_OSX_DEPLOYMENT_TARGET - # but it's not working reliably, so forcing it for now + # using 10.7 because boost requires libc++ and 10.6 doesn't include it SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mmacosx-version-min=10.7") - SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -mmacosx-version-min=10.7") elseif(${CMAKE_SYSTEM_NAME} MATCHES "Linux" OR ${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD") find_package(Threads REQUIRED) -- 2.39.5