[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [kproperty/3.1] /: Set policy CMP0071 (AUTOMOC) to remove warnings in cmake >= 3.10
From: Jaroslaw Staniek <null () kde ! org>
Date: 2018-01-31 21:45:54
Message-ID: E1eh0CY-0002YQ-0h () code ! kde ! org
[Download RAW message or body]
Git commit 21b7e1f6dab0240c06b6df64260640437afb1bf0 by Jaroslaw Staniek.
Committed on 31/01/2018 at 21:45.
Pushed by staniek into branch '3.1'.
Set policy CMP0071 (AUTOMOC) to remove warnings in cmake >= 3.10
FIXED-IN:3.1.0
M +3 -0 autotests/headers/HeadersTestInclude.cmake
M +3 -0 cmake/modules/SetKPropertyCMakePolicies.cmake
https://commits.kde.org/kproperty/21b7e1f6dab0240c06b6df64260640437afb1bf0
diff --git a/autotests/headers/HeadersTestInclude.cmake \
b/autotests/headers/HeadersTestInclude.cmake index a4d06ed..8fb4797 100644
--- a/autotests/headers/HeadersTestInclude.cmake
+++ b/autotests/headers/HeadersTestInclude.cmake
@@ -10,3 +10,6 @@ include(KDECompilerSettings NO_POLICY_SCOPE)
if(POLICY CMP0063) # Honor visibility properties for all target types (since cmake \
3.3) cmake_policy(SET CMP0063 NEW)
endif()
+if(POLICY CMP0071) # Don't warn when combining AUTOMOC with qt5_wrap_ui() or \
qt5_add_resources() (since cmake 3.10) + cmake_policy(SET CMP0071 NEW)
+endif()
diff --git a/cmake/modules/SetKPropertyCMakePolicies.cmake \
b/cmake/modules/SetKPropertyCMakePolicies.cmake index 62b9d3e..bc28d8a 100644
--- a/cmake/modules/SetKPropertyCMakePolicies.cmake
+++ b/cmake/modules/SetKPropertyCMakePolicies.cmake
@@ -14,3 +14,6 @@ endif()
if(POLICY CMP0063) # Honor visibility properties for all target types (since cmake \
3.3) cmake_policy(SET CMP0063 NEW)
endif()
+if(POLICY CMP0071) # Don't warn when combining AUTOMOC with qt5_wrap_ui() or \
qt5_add_resources() (since cmake 3.10) + cmake_policy(SET CMP0071 NEW)
+endif()
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic