[Cmake-commits] [cmake-commits] king committed CMakeLists.txt 1.6 1.7

cmake-commits at cmake.org cmake-commits at cmake.org
Fri Mar 7 15:30:37 EST 2008


Update of /cvsroot/CMake/CMake/Tests/MakeClean/ToClean
In directory public:/mounts/ram/cvs-serv16041/Tests/MakeClean/ToClean

Modified Files:
	CMakeLists.txt 
Log Message:
ENH: Improve handling of old-style compatibility.

  - Remove CMP_0001 (no slash in target name) and restore
    old CMAKE_BACKWARDS_COMPATIBILITY check for it
  - Replace all checks of CMAKE_BACKWARDS_COMPATIBILITY
    with cmLocalGenerator::NeedBackwardsCompatibility calls
  - Create new CMP_0001 to determine whether or not
    CMAKE_BACKWARDS_COMPATIBILITY is used.
    (old = use, new = ignore)
  - Show CMAKE_BACKWARDS_COMPATIBILITY in cache only when
    CMP_0001 is set to OLD or WARN
  - Update documentation of cmake_policy and cmake_minimum_required
    to indicate their relationship and the 2.4 version boundary
  - When no cmake policy version is set in top level makefile
    implicitly call cmake_policy(VERSION 2.4) which restores
    CMAKE_BACKWARDS_COMPATIBILITY and other 2.4 compatibility
  - Fix tests MakeClean and Preprocess to call
    cmake_policy(VERSION 2.6) because they depend on new policies


Index: CMakeLists.txt
===================================================================
RCS file: /cvsroot/CMake/CMake/Tests/MakeClean/ToClean/CMakeLists.txt,v
retrieving revision 1.6
retrieving revision 1.7
diff -C 2 -d -r1.6 -r1.7
*** CMakeLists.txt	29 Dec 2007 04:07:26 -0000	1.6
--- CMakeLists.txt	7 Mar 2008 20:30:35 -0000	1.7
***************
*** 1,2 ****
--- 1,3 ----
+ cmake_policy(VERSION 2.6)
  PROJECT(ToClean)
  



More information about the Cmake-commits mailing list