Update Mac.cmake

This commit is contained in:
Aaron Gyes 2021-10-06 19:42:25 -07:00
parent 8259bf7c7e
commit 01919f1785

View File

@ -1,4 +1,6 @@
set(CMAKE_OSX_DEPLOYMENT_TARGET "10.10" CACHE STRING "Minimum OS X deployment version")
# list of possibly relevent new stuff in 10.10 compared to 10.9:
# https://gist.github.com/floam/586f9c8a338357e16a97fa596b330e37
# Code signing ID on Mac.
# If this is falsey, codesigning is disabled.
@ -11,10 +13,10 @@ set(MAC_INJECT_GET_TASK_ALLOW ON CACHE BOOL "Inject get-task-allow on Mac")
# When building a Mac build, it is common for fish to link against a
# pcre2 built for the host platform (e.g. macOS 10.15) while fish wants
# to link for macOS 10.9. This warning would be of interest for releases,
# to link for macOS 10.10. This warning would be of interest for releases,
# but is just noise for daily development. Unfortunately it has no flag
# of its own, so suppress all linker warnings in debug builds.
set(CMAKE_EXE_LINKER_FLAGS_DEBUG "${CMAKE_EXE_LINKER_FLAGS_DEBUG} -w")
#set(CMAKE_EXE_LINKER_FLAGS_DEBUG "${CMAKE_EXE_LINKER_FLAGS_DEBUG} -w")
function(CODESIGN_ON_MAC target)
if((APPLE) AND (MAC_CODESIGN_ID))