]> sigrok.org Git - pulseview.git/commitdiff
CMakeLists.txt: Set CMake policy CMP0071 to NEW.
authorUwe Hermann <redacted>
Sat, 31 Mar 2018 22:05:11 +0000 (00:05 +0200)
committerUwe Hermann <redacted>
Sat, 31 Mar 2018 22:05:11 +0000 (00:05 +0200)
This fixes bug #1143.

CMakeLists.txt

index d64ed307e3103ae8561851b3a7f04d8bbdce4b70..3482980958f6ffbf557f95526d7b9f1a9fca0361 100644 (file)
@@ -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")
 
 #===============================================================================