[Cmake-commits] [cmake-commits] king committed CMakeLists.txt 1.8 1.9
cmake-commits at cmake.org
cmake-commits at cmake.org
Fri Mar 7 15:30:37 EST 2008
Update of /cvsroot/CMake/CMake/Tests/Preprocess
In directory public:/mounts/ram/cvs-serv16041/Tests/Preprocess
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/Preprocess/CMakeLists.txt,v
retrieving revision 1.8
retrieving revision 1.9
diff -C 2 -d -r1.8 -r1.9
*** CMakeLists.txt 1 Mar 2008 15:56:03 -0000 1.8
--- CMakeLists.txt 7 Mar 2008 20:30:35 -0000 1.9
***************
*** 1,2 ****
--- 1,3 ----
+ cmake_policy(VERSION 2.6)
project(Preprocess)
More information about the Cmake-commits
mailing list