From 2a53075ed823976c3b3b9f87ee7758145babc38e Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Wed, 7 May 2008 14:57:29 -0400 Subject: [PATCH] ENH: fix sort to work with CMP0007 --- Source/cmListCommand.cxx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Source/cmListCommand.cxx b/Source/cmListCommand.cxx index efda0e5a5..b815f2f9f 100644 --- a/Source/cmListCommand.cxx +++ b/Source/cmListCommand.cxx @@ -544,6 +544,12 @@ bool cmListCommand std::vector::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 += ";";