summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 += ";";