From e3fd9cbc55be1e0094f2160edb785b3f52cc8603 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julian=20Gro=C3=9F?= Date: Sat, 31 May 2025 15:39:24 +0200 Subject: [PATCH] Replace MACOSX_DEPLOYMENT_TARGET environment variable with CMAKE_OSX_DEPLOYMENT_TARGET cache variable. --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7bfe289d5f..12239cef82 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -20,9 +20,9 @@ set(CMAKE_AUTOMOC ON) set(CMAKE_AUTORCC ON) # set our OS X deployment target -# (needs to be set before first project() call and before prebuild.py) if (APPLE) - set(ENV{MACOSX_DEPLOYMENT_TARGET} 10.11) + # Needs to be set before the first project() call. + set(CMAKE_OSX_DEPLOYMENT_TARGET "10.11" CACHE STRING "Specifies the minimum version of the target platform (e.g. macOS or iOS) on which the target binaries are to be deployed.") endif() set(EXTERNAL_BUILD_ASSETS "https://build-deps.overte.org")