From f8309d8d8d62fd10b809e2eef1076cac043f8f31 Mon Sep 17 00:00:00 2001 From: "Friedrich W. H. Kossebau" Date: Tue, 19 Jan 2021 18:30:12 +0100 Subject: Define -DQT_NO_FOREACH by default --- kde-modules/KDEFrameworkCompilerSettings.cmake | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'kde-modules/KDEFrameworkCompilerSettings.cmake') diff --git a/kde-modules/KDEFrameworkCompilerSettings.cmake b/kde-modules/KDEFrameworkCompilerSettings.cmake index 27298b8a..6a69bce9 100644 --- a/kde-modules/KDEFrameworkCompilerSettings.cmake +++ b/kde-modules/KDEFrameworkCompilerSettings.cmake @@ -44,6 +44,12 @@ if (NOT WIN32) add_definitions(-DQT_STRICT_ITERATORS) endif() +# Some non-KF projects make (ab)use of KDEFrameworkCompilerSettings currently, +# let them only hit this as well when bumping their min. ECM requirement to a newer version. +if (NOT "${ECM_GLOBAL_FIND_VERSION}" VERSION_LESS "5.79.0") + add_definitions(-DQT_NO_FOREACH) +endif() + add_definitions( -DQT_DEPRECATED_WARNINGS_SINCE=0x060000 -DKF_DEPRECATED_WARNINGS_SINCE=0x060000 -- cgit v1.2.1