Made CMake 3.19 requirement specific to macOS app packaging.

make_linux_ci_do_zoomies
Andrew Dunn 2 years ago
parent 71f6f95020
commit 9f7e132479

@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.19.0) cmake_minimum_required(VERSION 3.1.0)
# for link time optimization, remove if cmake version is >= 3.9 # for link time optimization, remove if cmake version is >= 3.9
if(POLICY CMP0069) # LTO if(POLICY CMP0069) # LTO
@ -799,8 +799,8 @@ endif()
# Apple bundling # Apple bundling
if (OPENMW_OSX_DEPLOYMENT AND APPLE) if (OPENMW_OSX_DEPLOYMENT AND APPLE)
if (CMAKE_VERSION VERSION_GREATER_EQUAL 3.13 AND CMAKE_VERSION VERSION_LESS 3.13.4) if (CMAKE_VERSION VERSION_LESS 3.19)
message(FATAL_ERROR "macOS packaging is broken in early CMake 3.13 releases, see https://gitlab.com/OpenMW/openmw/issues/4767. Please use at least 3.13.4 or an older version like 3.12.4") message(FATAL_ERROR "macOS packaging requires CMake 3.19 or higher to sign macOS app bundles.")
endif () endif ()
get_property(QT_COCOA_PLUGIN_PATH TARGET Qt5::QCocoaIntegrationPlugin PROPERTY LOCATION_RELEASE) get_property(QT_COCOA_PLUGIN_PATH TARGET Qt5::QCocoaIntegrationPlugin PROPERTY LOCATION_RELEASE)

Loading…
Cancel
Save