From 05d9d7cae85fab5d5c61b4f88992d17ce9d62f0a Mon Sep 17 00:00:00 2001 From: James Turner Date: Tue, 8 Dec 2015 20:42:43 +0000 Subject: [PATCH] On Mac, force setting macon-min-version - the CMake option seems to be erratic, it works locally but not on the Jenkins machine for inexplicable reasons. --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index bcfd1830..6db62d75 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -174,6 +174,10 @@ endif (MSVC AND MSVC_3RDPARTY_ROOT) if(APPLE) find_library(COCOA_LIBRARY Cocoa) + +# this should be handled by setting CMAKE_OSX_DEPLOYMENT_TARGET +# but it's not working reliably, so forcing it for now + SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mmacosx-version-min=10.7") endif() if(${CMAKE_SYSTEM_NAME} MATCHES "Linux" OR -- 2.39.5