summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Eschenbacher <[email protected]>2017-12-03 13:25:32 +0100
committerThomas Eschenbacher <[email protected]>2017-12-03 13:25:32 +0100
commitbf7ad595f4046716ed664dd972e0c0c46b753ba4 (patch)
treee5c019c0a2e84aeae70a811efc6482ed2658fba5
parentb5c077ce3c093544ace18d2041826b5f158c0340 (diff)
set cmake policy 0071 to silence messages about AUTOMOC and generated files
-rw-r--r--CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 72bc69e..4f0aa5e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -77,6 +77,11 @@ IF (POLICY CMP0063)
CMAKE_POLICY(SET CMP0063 NEW)
ENDIF (POLICY CMP0063)
+# exclude generated automoc files per default (since cmake 3.10)
+IF (POLICY CMP0071)
+ CMAKE_POLICY(SET CMP0071 NEW)
+ENDIF (POLICY CMP0071)
+
SET(ECM_MIN_VERSION "1.7.0")
SET(QT_MIN_VERSION "5.4.0")
SET(KF5_MIN_VERSION "5.33.0")