summaryrefslogtreecommitdiffstats
path: root/Source/cmListCommand.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2008-05-07 18:57:29 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2008-05-07 18:57:29 (GMT)
commit2a53075ed823976c3b3b9f87ee7758145babc38e (patch)
tree06e997cdf94373e1e0ffcced2a04a3e079da9415 /Source/cmListCommand.cxx
parent66b01e254faa65081ad39328d7a3cb623b41396e (diff)
downloadCMake-2a53075ed823976c3b3b9f87ee7758145babc38e.zip
CMake-2a53075ed823976c3b3b9f87ee7758145babc38e.tar.gz
CMake-2a53075ed823976c3b3b9f87ee7758145babc38e.tar.bz2
ENH: fix sort to work with CMP0007
Diffstat (limited to 'Source/cmListCommand.cxx')
-rw-r--r--Source/cmListCommand.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/cmListCommand.cxx b/Source/cmListCommand.cxx
index efda0e5..b815f2f 100644
--- a/Source/cmListCommand.cxx
+++ b/Source/cmListCommand.cxx
@@ -544,6 +544,12 @@ bool cmListCommand
std::vector<std::string>::iterator it;
for ( it = varArgsExpanded.begin(); it != varArgsExpanded.end(); ++ it )
{
+ if(value.size() == 0 &&
+ this->Makefile->GetPolicyStatus(cmPolicies::CMP0007) ==
+ cmPolicies::NEW)
+ {
+ value += ";";
+ }
if (value.size())
{
value += ";";