Revert "Update Mac.cmake"

This reverts commit 01919f1785.
This commit is contained in:
Aaron Gyes 2022-01-03 08:08:41 -08:00
parent 17b5647474
commit 1552c526ba

View File

@ -1,6 +1,4 @@
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.
@ -13,10 +11,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.10. This warning would be of interest for releases,
# to link for macOS 10.9. 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))