From 968b0cff4409492ec9aca8adee5e160edba64b9f Mon Sep 17 00:00:00 2001 From: OatmealDome Date: Tue, 22 Apr 2025 23:40:37 -0400 Subject: [PATCH] BuildMacOSUniversalBinary: Explicitly specify CMAKE_OSX_DEPLOYMENT_TARGET in CMake flags If the build folder is created from an older commit and this flag is not set, the last value set for this flag will be used instead. This is currently happening on our macOS build machine, causing macOS 10.15 to still be used as the deployment target. --- BuildMacOSUniversalBinary.py | 1 + 1 file changed, 1 insertion(+) diff --git a/BuildMacOSUniversalBinary.py b/BuildMacOSUniversalBinary.py index 3c1f68b05c..5eff0d0cfc 100755 --- a/BuildMacOSUniversalBinary.py +++ b/BuildMacOSUniversalBinary.py @@ -288,6 +288,7 @@ def build(config): "-DCMAKE_PREFIX_PATH="+prefix_path, "-DCMAKE_SYSTEM_PROCESSOR="+arch, "-DCMAKE_IGNORE_PATH="+ignore_path, + "-DCMAKE_OSX_DEPLOYMENT_TARGET=11.0.0", "-DMACOS_CODE_SIGNING_IDENTITY=" + config["codesign_identity"], '-DMACOS_CODE_SIGNING="ON"',