summaryrefslogtreecommitdiffstats
path: root/Source/cmPolicies.cxx
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2009-06-12 14:07:05 (GMT)
committerKen Martin <ken.martin@kitware.com>2009-06-12 14:07:05 (GMT)
commita73071ca175c70db95271688ef9c7711e700f9a7 (patch)
tree7845929f87622edbe30e9009e80aa3c6016fe5c1 /Source/cmPolicies.cxx
parent7e03edf1df6875b80f53b66dce5ac4f42a49394d (diff)
downloadCMake-a73071ca175c70db95271688ef9c7711e700f9a7.zip
CMake-a73071ca175c70db95271688ef9c7711e700f9a7.tar.gz
CMake-a73071ca175c70db95271688ef9c7711e700f9a7.tar.bz2
ENH: modified the if command to address bug 9123 some
Diffstat (limited to 'Source/cmPolicies.cxx')
-rw-r--r--Source/cmPolicies.cxx13
1 files changed, 13 insertions, 0 deletions
diff --git a/Source/cmPolicies.cxx b/Source/cmPolicies.cxx
index 169814a..5fc0d74 100644
--- a/Source/cmPolicies.cxx
+++ b/Source/cmPolicies.cxx
@@ -355,6 +355,19 @@ cmPolicies::cmPolicies()
"The NEW behavior for this policy is to allow the commands to do their "
"default cmake_policy PUSH and POP.",
2,6,3, cmPolicies::WARN);
+
+ this->DefinePolicy(
+ CMP0012, "CMP0012",
+ "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 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.",
+ "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 boolean constant.",
+ 2,6,5, cmPolicies::WARN);
}
cmPolicies::~cmPolicies()