X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=cmake%2FcpPlugins_Policies.cmake;fp=cmake%2FcpPlugins_Policies.cmake;h=c7c8bad398b1caa3dc42b7f9cbb28edaa978f348;hb=201c5026430f9bcc33f9db6a39f5d03db096c860;hp=0000000000000000000000000000000000000000;hpb=aa77db36cc1d87ba014c982a235239c3c87224f3;p=cpPlugins.git diff --git a/cmake/cpPlugins_Policies.cmake b/cmake/cpPlugins_Policies.cmake new file mode 100644 index 0000000..c7c8bad --- /dev/null +++ b/cmake/cpPlugins_Policies.cmake @@ -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$