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.
This commit is contained in:
James Turner 2015-12-08 20:42:43 +00:00
parent 78a548b861
commit 05d9d7cae8

View File

@ -174,6 +174,10 @@ endif (MSVC AND MSVC_3RDPARTY_ROOT)
if(APPLE) if(APPLE)
find_library(COCOA_LIBRARY Cocoa) 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() endif()
if(${CMAKE_SYSTEM_NAME} MATCHES "Linux" OR if(${CMAKE_SYSTEM_NAME} MATCHES "Linux" OR