summaryrefslogtreecommitdiffstats
path: root/Source/cmPolicies.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-06-17 18:18:14 (GMT)
committerBrad King <brad.king@kitware.com>2009-06-17 18:18:14 (GMT)
commit36366beb6270aa0e02a635318e4cdf610329b5bc (patch)
tree9e07176aaf2d6817fc8ba498da106d6dac1b8542 /Source/cmPolicies.cxx
parent3c856405e457255e3db006c793d54d9cb69114cf (diff)
downloadCMake-36366beb6270aa0e02a635318e4cdf610329b5bc.zip
CMake-36366beb6270aa0e02a635318e4cdf610329b5bc.tar.gz
CMake-36366beb6270aa0e02a635318e4cdf610329b5bc.tar.bz2
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.
Diffstat (limited to 'Source/cmPolicies.cxx')
-rw-r--r--Source/cmPolicies.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmPolicies.cxx b/Source/cmPolicies.cxx
index 1f8bb89..211f351 100644
--- a/Source/cmPolicies.cxx
+++ b/Source/cmPolicies.cxx
@@ -358,12 +358,13 @@ cmPolicies::cmPolicies()
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, "
"on, off, y, n, notfound, ignore (all case insensitive) were recognized "
"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.",
+ "as variable names. "
"The OLD behavior for this policy is to allow variables to have names "
"such as true and to dereference them. "
"The NEW behavior for this policy is to treat strings like true as a "