Commit d34fe1a2 authored by Ahmad Samir's avatar Ahmad Samir Committed by Tomaz Canabrava
Browse files

When building with Qt6, disable as much deprecated code as possible

And ensure deprecation warnings for bot Qt and KF versions higher than the
specified ones are shown when building.
parent 4bf4311c
Pipeline #179918 passed with stage
in 2 minutes and 33 seconds
......@@ -45,6 +45,17 @@ include(CheckIncludeFiles)
# Allows passing e.g. -DECM_ENABLE_SANITIZERS='address;undefined' to cmake.
include(ECMEnableSanitizers)
if(QT_MAJOR_VERSION EQUAL "6")
# ECMDeprecationSettings is in ECM since 5.91, this assumes if you're building
# with Qt6, you have latest ECM anyway
include(ECMDeprecationSettings)
ecm_set_disabled_deprecation_versions(
SHOW_DEPRECATIONS
QT 5.15.2
KF 5.93.0
)
endif()
ecm_setup_version(${RELEASE_SERVICE_VERSION} VARIABLE_PREFIX KONSOLEPRIVATE
SOVERSION 1
)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment