Merge pull request #1236 from jagerman/macos-deployment-target-dev

Set -mmacosx-version-min the cmake way
pull/1238/head
Jason Rhinelander 4 years ago committed by GitHub
commit ffae1a7f11
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,5 +1,7 @@
cmake_minimum_required(VERSION 3.10) # bionic's cmake version
set(CMAKE_OSX_DEPLOYMENT_TARGET 10.13) # Has to be set before `project()`, and ignored on non-macos
find_program(CCACHE_PROGRAM ccache)
if(CCACHE_PROGRAM)
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE "${CCACHE_PROGRAM}")

@ -2,11 +2,6 @@ if(NOT UNIX)
return()
endif()
# because apple means embracing bitrot
if(APPLE)
add_compile_options(-mmacosx-version-min=10.13)
endif()
include(CheckCXXSourceCompiles)
include(CheckLibraryExists)

Loading…
Cancel
Save