Set OSX minimum supported version

pull/1003/head
Tom Sutcliffe 2021-08-15 11:22:56 +01:00 committed by phkahler
parent c19bd8cc99
commit 645febfcd6
1 changed files with 5 additions and 0 deletions

View File

@ -25,6 +25,11 @@ if(CMAKE_SYSTEM_NAME STREQUAL "FreeBSD")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++")
endif()
if (APPLE)
# Docs say this must be set before the first project() call
set(CMAKE_OSX_DEPLOYMENT_TARGET "10.12" CACHE STRING "macOS minimum supported version")
endif()
# project
# NOTE TO PACKAGERS: The embedded git commit hash is critical for rapid bug triage when the builds