summaryrefslogtreecommitdiffhomepage
path: root/cmake/opentrack-policy.cmake
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2015-10-30 07:37:41 +0100
committerStanislaw Halik <sthalik@misaki.pl>2015-10-30 08:39:32 +0100
commitaa066bdd4622d4f6824fee864f6be6806813f04d (patch)
tree3df328b8b364cba2373a85827191b259bd78d546 /cmake/opentrack-policy.cmake
parentd6a54431d178632a2bf466c9904f74abd143afe6 (diff)
move to subdirectory-based build system
Closes #224
Diffstat (limited to 'cmake/opentrack-policy.cmake')
-rw-r--r--cmake/opentrack-policy.cmake10
1 files changed, 10 insertions, 0 deletions
diff --git a/cmake/opentrack-policy.cmake b/cmake/opentrack-policy.cmake
new file mode 100644
index 00000000..48aba3cc
--- /dev/null
+++ b/cmake/opentrack-policy.cmake
@@ -0,0 +1,10 @@
+cmake_policy(SET CMP0020 NEW)
+if(POLICY CMP0058)
+ cmake_policy(SET CMP0058 OLD)
+endif()
+if(POLICY CMP0028)
+ cmake_policy(SET CMP0028 OLD)
+endif()
+if(POLICY CMP0042)
+ cmake_policy(SET CMP0042 NEW)
+endif()