From 70f8c5f9efaae8f16874d8cfc551e8ae19558fba Mon Sep 17 00:00:00 2001 From: Alex Merry Date: Sun, 27 Dec 2015 11:40:55 +0000 Subject: Silence CMP0063 warnings with KDECompilerSettings. We recommend including KDE "settings" modules with NO_POLICY_SCOPE, both so we can resolve this issue and to allow us to deal with similar things in the future. REVIEW: 126535 --- kde-modules/KDEFrameworkCompilerSettings.cmake | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'kde-modules/KDEFrameworkCompilerSettings.cmake') diff --git a/kde-modules/KDEFrameworkCompilerSettings.cmake b/kde-modules/KDEFrameworkCompilerSettings.cmake index 55ab36cf..e41003d6 100644 --- a/kde-modules/KDEFrameworkCompilerSettings.cmake +++ b/kde-modules/KDEFrameworkCompilerSettings.cmake @@ -12,6 +12,9 @@ # forcing the use of QLatin1String or QStringLiteral, and some # Qt-defined keywords like signals and slots will not be defined. # +# NB: it is recommended to include this module with the NO_POLICY_SCOPE +# flag, otherwise you may get spurious warnings with some versions of CMake. +# # Since pre-1.0.0. #============================================================================= @@ -30,7 +33,7 @@ # (To distribute this file outside of extra-cmake-modules, substitute the full # License text for the above reference.) -include(KDECompilerSettings) +include(KDECompilerSettings NO_POLICY_SCOPE) add_definitions(-DQT_NO_CAST_TO_ASCII -DQT_NO_CAST_FROM_ASCII -- cgit v1.2.1