From 3642d1dedf6c1fcd4d80ed330e92e3d4fd73a71f Mon Sep 17 00:00:00 2001 From: Scott Furry Date: Sat, 25 May 2019 12:05:29 -0600 Subject: [PATCH] CMakeLists change to silence CMP0071 warning. Problem identified in Github Issue #1910. Update to CMake had policy warning of AUTOMOC usage. See https://cmake.org/cmake/help/latest/policy/CMP0071.html Commit adds instructions to silence the warning. Affect of AUTOMOC behaviour with 'new' needs further study. --- CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 740ec5eb..e0281992 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -32,6 +32,13 @@ set(CMAKE_CXX_STANDARD_REQUIRED True) if (POLICY CMP0025) cmake_policy(SET CMP0025 NEW) endif () +# Fix warning of AUTOMOC behavior +if (POLICY CMP0071) + # Use of AUTOMOC is set to old for now for consistency. + # Affects of 'new' behavior is as yet to be determined. + # https://cmake.org/cmake/help/latest/policy/CMP0071.html + cmake_policy(SET CMP0071 OLD) +endif() if(WIN32 AND MSVC) if(CMAKE_CL_64)