diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2008-04-21 20:57:11 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2008-04-21 20:57:11 (GMT) |
commit | 0a0672c01f784e67a0de9de0a8633c0c16bf7749 (patch) | |
tree | a614c6eaf1c80c5baa5a58e249bed49b9d8db83c /Source/cmPolicies.cxx | |
parent | aa10b4e33cd4a0c304f3cd3ffd5f0f382a6b6178 (diff) | |
download | CMake-0a0672c01f784e67a0de9de0a8633c0c16bf7749.zip CMake-0a0672c01f784e67a0de9de0a8633c0c16bf7749.tar.gz CMake-0a0672c01f784e67a0de9de0a8633c0c16bf7749.tar.bz2 |
ENH: fix list command with empty elements
Diffstat (limited to 'Source/cmPolicies.cxx')
-rw-r--r-- | Source/cmPolicies.cxx | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Source/cmPolicies.cxx b/Source/cmPolicies.cxx index 4e1b857..64caf25 100644 --- a/Source/cmPolicies.cxx +++ b/Source/cmPolicies.cxx @@ -269,6 +269,18 @@ cmPolicies::cmPolicies() "The NEW behavior for this policy is to produce an error if a bundle " "target is installed without a BUNDLE DESTINATION.", 2,6,0, cmPolicies::WARN); + + this->DefinePolicy( + CMP0007, "CMP0007", + "list command no longer ignores empty elements.", + "This policy determines whether the list command will " + "ignore empty elements in the list. " + "CMake 2.4 and below list commands ignored all empty elements" + " in the list. For example, a;b;;c would have length 3 and not 4. " + "The OLD behavior for this policy is to ignore empty list elements. " + "The NEW behavior for this policy is to correctly count empty " + "elements in a list. ", + 2,6,0, cmPolicies::WARN); } cmPolicies::~cmPolicies() |