Cocoa: emit config error when using 15.0 as deployment target
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ø <tor.arne.vestbo@qt.io>
This commit is contained in:
parent
59bbfb17db
commit
b6f3695a80
@ -79,6 +79,11 @@ qt_internal_add_resource(QCocoaIntegrationPlugin "qcocoaresources"
|
|||||||
${qcocoaresources_resource_files}
|
${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:
|
## Scopes:
|
||||||
#####################################################################
|
#####################################################################
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user