┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorAlexander Lohnau <[email protected]>2021-12-19 15:31:02 +0100
committerAlexander Lohnau <[email protected]>2022-01-14 07:13:20 +0100
commit8bc7f72a731904f4cc0669333e5db39613246e9e (patch)
treee7b5cd833760080db487b1545c477740fc6aae66 /CMakeLists.txt
parent63124f569ca8f6dec6431c667f02d2f985db2979 (diff)
Utilize ecm_set_deprecation_versions to exclude deprecated API
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt10
1 files changed, 5 insertions, 5 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index f58fab1fa..ca845f3be 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -26,6 +26,7 @@ include(CMakePackageConfigHelpers)
include(GenerateExportHeader)
include(FeatureSummary)
include(ECMQtDeclareLoggingCategory)
+include(ECMDeprecationSettings)
ecm_setup_version(${RELEASE_SERVICE_VERSION} VARIABLE_PREFIX DOLPHIN
VERSION_HEADER "${CMAKE_CURRENT_BINARY_DIR}/src/dolphin_version.h"
@@ -138,11 +139,10 @@ else()
set(HAVE_TERMINAL TRUE)
endif()
-add_definitions(
- -DQT_DISABLE_DEPRECATED_BEFORE=0x050f00
- -DQT_DEPRECATED_WARNINGS_SINCE=0x060000
- -DKF_DISABLE_DEPRECATED_BEFORE_AND_AT=0x055800
- -DKF_DEPRECATED_WARNINGS_SINCE=0x060000
+ecm_set_disabled_deprecation_versions(SHOW_DEPRECATIONS
+ QT 5.15
+ KF 5.90
+ KSERVICE 5.89 # We use KServiceTypeTrader in a compat code path
)
add_subdirectory(src)