Replace MACOSX_DEPLOYMENT_TARGET environment variable with CMAKE_OSX_DEPLOYMENT_TARGET cache variable.

This commit is contained in:
Julian Groß 2025-05-31 15:39:24 +02:00
parent 3b06290e46
commit e3fd9cbc55

View file

@ -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")