From kde-commits Wed Jan 31 21:49:01 2018 From: Jaroslaw Staniek Date: Wed, 31 Jan 2018 21:49:01 +0000 To: kde-commits Subject: [kreport/3.1] /: Set policy CMP0071 (AUTOMOC) to remove warnings in cmake >= 3.10 Message-Id: X-MARC-Message: https://marc.info/?l=kde-commits&m=151743535528921 Git commit bf3b7b831bd032c7c9a0ccf0c3582b92e8677519 by Jaroslaw Staniek. Committed on 31/01/2018 at 21:47. Pushed by staniek into branch '3.1'. Set policy CMP0071 (AUTOMOC) to remove warnings in cmake >=3D 3.10 FIXED-IN:3.1.0 M +3 -0 autotests/headers/HeadersTestInclude.cmake M +3 -0 cmake/modules/SetKReportCMakePolicies.cmake https://commits.kde.org/kreport/bf3b7b831bd032c7c9a0ccf0c3582b92e8677519 diff --git a/autotests/headers/HeadersTestInclude.cmake b/autotests/headers= /HeadersTestInclude.cmake index 276f66b..f01b355 100644 --- a/autotests/headers/HeadersTestInclude.cmake +++ b/autotests/headers/HeadersTestInclude.cmake @@ -9,3 +9,6 @@ include(KDECompilerSettings NO_POLICY_SCOPE) if(POLICY CMP0063) # Honor visibility properties for all target types (sin= ce 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/SetKReportCMakePolicies.cmake b/cmake/modules/Se= tKReportCMakePolicies.cmake index 62b9d3e..bc28d8a 100644 --- a/cmake/modules/SetKReportCMakePolicies.cmake +++ b/cmake/modules/SetKReportCMakePolicies.cmake @@ -14,3 +14,6 @@ endif() if(POLICY CMP0063) # Honor visibility properties for all target types (sin= ce 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()