summaryrefslogtreecommitdiffstats
path: root/Source/cmPolicies.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-10-02 18:36:47 (GMT)
committerBrad King <brad.king@kitware.com>2009-10-02 18:36:47 (GMT)
commit3d3efbd3f50cf1acbbda1a8d07d53874f2388842 (patch)
treebeb6ebc6f5920b0b240a87897a67edb40df2fd47 /Source/cmPolicies.cxx
parent5837f4a613254ac578b957405a0af87a9473a676 (diff)
downloadCMake-3d3efbd3f50cf1acbbda1a8d07d53874f2388842.zip
CMake-3d3efbd3f50cf1acbbda1a8d07d53874f2388842.tar.gz
CMake-3d3efbd3f50cf1acbbda1a8d07d53874f2388842.tar.bz2
Clarify documentation and message for CMP0012
This commit re-words the warning message produced for CMP0012 to avoid the word 'you' since often the person reading the message is not the author of the code. We also add an example of the bad OLD behavior to the policy documentation.
Diffstat (limited to 'Source/cmPolicies.cxx')
-rw-r--r--Source/cmPolicies.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/cmPolicies.cxx b/Source/cmPolicies.cxx
index b6bb116..a7292cf 100644
--- a/Source/cmPolicies.cxx
+++ b/Source/cmPolicies.cxx
@@ -362,7 +362,9 @@ cmPolicies::cmPolicies()
"In CMake versions 2.6.4 and lower 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 "
+ "in some cases but not all. "
+ "For example, the code \"if(TRUE)\" might have evaluated as false. "
+ "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 "