[Cmake-commits] [cmake-commits] king committed CMakeLists.txt 1.71 1.72
cmake-commits at cmake.org
cmake-commits at cmake.org
Mon Aug 18 09:53:08 EDT 2008
Update of /cvsroot/CMake/CMake/Tests/Complex
In directory public:/mounts/ram/cvs-serv24354/Tests/Complex
Modified Files:
CMakeLists.txt
Log Message:
ENH: Add cmake_policy(GET) command mode
It is likely that projects or CMake modules in the future will need to
check the value of a policy setting. For example, if we add a policy
that affects the results of FindXYZ.cmake modules, the module code will
need to be able to check the policy.
Index: CMakeLists.txt
===================================================================
RCS file: /cvsroot/CMake/CMake/Tests/Complex/CMakeLists.txt,v
retrieving revision 1.71
retrieving revision 1.72
diff -C 2 -d -r1.71 -r1.72
*** CMakeLists.txt 26 Jun 2008 17:01:35 -0000 1.71
--- CMakeLists.txt 18 Aug 2008 13:53:06 -0000 1.72
***************
*** 8,11 ****
--- 8,16 ----
IF(POLICY CMP0003)
CMAKE_POLICY(SET CMP0003 NEW)
+
+ CMAKE_POLICY(GET CMP0003 P3)
+ IF(NOT "${P3}" STREQUAL "NEW")
+ MESSAGE(FATAL_ERROR "CMAKE_POLICY(GET) did not report NEW!")
+ ENDIF(NOT "${P3}" STREQUAL "NEW")
ENDIF(POLICY CMP0003)
More information about the Cmake-commits
mailing list