From: Uwe Hermann Date: Sat, 31 Mar 2018 22:05:11 +0000 (+0200) Subject: CMakeLists.txt: Set CMake policy CMP0071 to NEW. X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=1c4ec8d0157dfdd9d567e0d183e3813c330e954a;p=pulseview.git CMakeLists.txt: Set CMake policy CMP0071 to NEW. This fixes bug #1143. --- diff --git a/CMakeLists.txt b/CMakeLists.txt index d64ed307..34829809 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -24,6 +24,11 @@ include(GNUInstallDirs) project(pulseview) +# Let AUTOMOC and AUTOUIC process GENERATED files. +if(POLICY CMP0071) + cmake_policy(SET CMP0071 NEW) +endif() + list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/CMake") #===============================================================================