summaryrefslogtreecommitdiffhomepage
path: root/cmake/opentrack-policy.cmake
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-12-24 22:45:38 +0100
committerStanislaw Halik <sthalik@misaki.pl>2018-12-24 22:45:38 +0100
commit323dd162f5326b998e1c92ab4cfec8a63574023f (patch)
treefb4f0f4f7585d3cb90aef453167c7f4df0c6eeee /cmake/opentrack-policy.cmake
parent3981f867377ca0652d0cc0ababbbc30208db7e1c (diff)
cmake: decruft, disable deprecated Qt functions
Diffstat (limited to 'cmake/opentrack-policy.cmake')
-rw-r--r--cmake/opentrack-policy.cmake17
1 files changed, 16 insertions, 1 deletions
diff --git a/cmake/opentrack-policy.cmake b/cmake/opentrack-policy.cmake
index e14bcbf7..209ef529 100644
--- a/cmake/opentrack-policy.cmake
+++ b/cmake/opentrack-policy.cmake
@@ -1,5 +1,20 @@
include_guard(GLOBAL)
-foreach(k CMP0020 CMP0022 CMP0058 CMP0028 CMP0042 CMP0063 CMP0053 CMP0011 CMP0054 CMP0012 CMP0069)
+
+set(_policies
+ CMP0020
+ CMP0022
+ CMP0058
+ CMP0028
+ CMP0042
+ CMP0063
+ CMP0053
+ CMP0011
+ CMP0054
+ CMP0012
+ CMP0069
+ CMP0063
+)
+foreach(k ${_policies})
if(POLICY ${k})
cmake_policy(SET ${k} NEW)
endif()