Fix default/minimum `CMAKE_OSX_DEPLOYMENT_TARGET` handling (#4156)
* Fix default/minimum `CMAKE_OSX_DEPLOYMENT_TARGET` handling * Drop explicit `CMAKE_OSX_DEPLOYMENT_TARGET` in GHA CI Rely on minimum set in top-level CMakeLists.txt instead.
This commit is contained in:
parent
095f094dd5
commit
9e185a17f2
|
@ -199,7 +199,6 @@ jobs:
|
|||
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
||||
-DCMAKE_INSTALL_PREFIX=pfx \
|
||||
-DCMAKE_OSX_ARCHITECTURES='x86_64' \
|
||||
-DCMAKE_OSX_DEPLOYMENT_TARGET='10.10' \
|
||||
-DCMAKE_PREFIX_PATH=`brew --prefix`/opt/qt@5 \
|
||||
-DENABLE_CLI=${{ (needs.what-to-make.outputs.make-cli == 'true') && 'ON' || 'OFF' }} \
|
||||
-DENABLE_DAEMON=${{ (needs.what-to-make.outputs.make-daemon == 'true') && 'ON' || 'OFF' }} \
|
||||
|
@ -369,7 +368,6 @@ jobs:
|
|||
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
||||
-DCMAKE_INSTALL_PREFIX=pfx \
|
||||
-DCMAKE_OSX_ARCHITECTURES='x86_64' \
|
||||
-DCMAKE_OSX_DEPLOYMENT_TARGET='10.10' \
|
||||
-DCMAKE_PREFIX_PATH=`brew --prefix`/opt/qt@5 \
|
||||
-DENABLE_CLI=${{ (needs.what-to-make.outputs.make-cli == 'true') && 'ON' || 'OFF' }} \
|
||||
-DENABLE_DAEMON=${{ (needs.what-to-make.outputs.make-daemon == 'true') && 'ON' || 'OFF' }} \
|
||||
|
|
|
@ -6,8 +6,8 @@ endif()
|
|||
|
||||
# The value of this variable should be set prior to the first project() command invocation.
|
||||
# See: https://cmake.org/cmake/help/latest/variable/CMAKE_OSX_DEPLOYMENT_TARGET.html
|
||||
if(CMAKE_OSX_DEPLOYMENT_TARGET STREQUAL "")
|
||||
set(CMAKE_OSX_DEPLOYMENT_TARGET "10.13")
|
||||
if(NOT CMAKE_OSX_DEPLOYMENT_TARGET)
|
||||
set(CMAKE_OSX_DEPLOYMENT_TARGET "10.13" CACHE STRING "Minimum OS X version to target for deployment" FORCE)
|
||||
endif()
|
||||
|
||||
project(transmission)
|
||||
|
|
|
@ -1,5 +1,10 @@
|
|||
project(trmac)
|
||||
|
||||
if(CMAKE_OSX_DEPLOYMENT_TARGET VERSION_LESS 10.9)
|
||||
# 10.9 required for actool to produce Assets.car
|
||||
message(FATAL_ERROR "Targeting macOS versions before 10.9 is not supported, please adjust CMAKE_OSX_DEPLOYMENT_TARGET (${CMAKE_OSX_DEPLOYMENT_TARGET})")
|
||||
endif()
|
||||
|
||||
include_directories(${CMAKE_SOURCE_DIR})
|
||||
|
||||
add_compile_options(
|
||||
|
|
Loading…
Reference in New Issue