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"