]> Creatis software - cpPlugins.git/blobdiff - cmake/cpPlugins_Policies.cmake
Code cleaning
[cpPlugins.git] / cmake / cpPlugins_Policies.cmake
diff --git a/cmake/cpPlugins_Policies.cmake b/cmake/cpPlugins_Policies.cmake
new file mode 100644 (file)
index 0000000..c7c8bad
--- /dev/null
@@ -0,0 +1,23 @@
+
+## ==========================
+## == Some useful policies ==
+## ==========================
+
+SET(
+  _policies
+  CMP0015
+  CMP0020
+  CMP0042
+  )
+
+## ==============
+## == Use them ==
+## ==============
+
+FOREACH(_p ${_policies})
+  IF(POLICY ${_p})
+    CMAKE_POLICY(SET ${_p} NEW)
+  ENDIF(POLICY ${_p})
+ENDFOREACH(_p)
+
+## eof - $RCSfile$