[Cmake-commits] [cmake-commits] king committed cmPolicies.cxx 1.39 1.40
cmake-commits at cmake.org
cmake-commits at cmake.org
Wed Jun 17 14:18:16 EDT 2009
Update of /cvsroot/CMake/CMake/Source
In directory public:/mounts/ram/cvs-serv1793/Source
Modified Files:
cmPolicies.cxx
Log Message:
ENH: Improve CMP0012 doc and message formatting
This fixes the CMP0012 description to have a one-line summary in the
'brief' section and the rest of the explanation in the 'full' section.
It makes the warning message shorter and improves formatting of the
policy documentation, especially in the HTML pages. The convention is
already used by all other policies.
Index: cmPolicies.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmPolicies.cxx,v
retrieving revision 1.39
retrieving revision 1.40
diff -C 2 -d -r1.39 -r1.40
*** cmPolicies.cxx 17 Jun 2009 17:40:09 -0000 1.39
--- cmPolicies.cxx 17 Jun 2009 18:18:14 -0000 1.40
***************
*** 359,362 ****
--- 359,363 ----
this->DefinePolicy(
CMP0012, "CMP0012",
+ "The if() command can recognize named boolean constants.",
"In CMake versions prior to 2.6.5 the only boolean constants were 0 "
"and 1. Other boolean constants such as true, false, yes, no, "
***************
*** 364,368 ****
"in some cases but not all. In later versions of cmake these values are "
"treated as boolean constants more consistently and should not be used "
! "as variable names. Please do not use them as variable names.",
"The OLD behavior for this policy is to allow variables to have names "
"such as true and to dereference them. "
--- 365,369 ----
"in some cases but not all. In later versions of cmake these values are "
"treated as boolean constants more consistently and should not be used "
! "as variable names. "
"The OLD behavior for this policy is to allow variables to have names "
"such as true and to dereference them. "
More information about the Cmake-commits
mailing list