Skip to content

Commit

Permalink
Cocoa: emit config error when using 15.0 as deployment target
Browse files Browse the repository at this point in the history
QCocoaScreen uses removed APIs, which cause the code no fail compilation
with CMAKE_OSX_DEPLOYMENT_TARGET=15.0.
Adding a compile-time check to detect this early.

Task-number: QTBUG-128900
Pick-to: 6.9 6.8 6.5
Change-Id: I7eeb60f5769af6b1622efd1e0637e85a038b7930
Reviewed-by: Tor Arne Vestbø <[email protected]>
  • Loading branch information
timblechmann committed Dec 11, 2024
1 parent 59bbfb1 commit b6f3695
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/plugins/platforms/cocoa/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,11 @@ qt_internal_add_resource(QCocoaIntegrationPlugin "qcocoaresources"
${qcocoaresources_resource_files}
)

if(CMAKE_OSX_DEPLOYMENT_TARGET VERSION_GREATER_EQUAL 15.0)
message(FATAL_ERROR "QCocoaScreen uses APIs removed in 15.0. Please specify a
CMAKE_OSX_DEPLOYMENT_TARGET of 14.0 or lower")
endif()

## Scopes:
#####################################################################

Expand Down

0 comments on commit b6f3695

Please sign in to comment.