From 992d5b4e9d7eb09e1cd038d75a0ea44afa56a1ca Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Thu, 23 Nov 2017 17:32:29 +0100 Subject: [PATCH] CMake: always automoc generated files --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 805c9674c..b07f3d1f3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -40,6 +40,10 @@ set( CMAKE_CXX_STANDARD_REQUIRED ON ) set( CMAKE_C_STANDARD 99 ) set( CMAKE_C_STANDARD_REQUIRED ON ) +# CMake 3.9, 3.10 compatibility +if( POLICY CMP0071 ) + cmake_policy( SET CMP0071 NEW ) +endif() if(NOT CMAKE_VERSION VERSION_LESS "3.10.0") list(APPEND CMAKE_AUTOMOC_MACRO_NAMES "K_PLUGIN_FACTORY_WITH_JSON"