summaryrefslogtreecommitdiffstats
path: root/Source/cmListCommand.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2008-05-20 16:15:40 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2008-05-20 16:15:40 (GMT)
commitafdc33dbb81fca97f39b0bc5c07f98a6b5b937bd (patch)
tree202f166be6d66dcb9aca8166e4f74c9b3b587173 /Source/cmListCommand.cxx
parentfd0e8b3a56bb04398d8e9e0ec478103fa9a548c2 (diff)
downloadCMake-afdc33dbb81fca97f39b0bc5c07f98a6b5b937bd.zip
CMake-afdc33dbb81fca97f39b0bc5c07f98a6b5b937bd.tar.gz
CMake-afdc33dbb81fca97f39b0bc5c07f98a6b5b937bd.tar.bz2
BUG: fix failing test
Diffstat (limited to 'Source/cmListCommand.cxx')
-rw-r--r--Source/cmListCommand.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/Source/cmListCommand.cxx b/Source/cmListCommand.cxx
index e81cbe7..0f25ad1 100644
--- a/Source/cmListCommand.cxx
+++ b/Source/cmListCommand.cxx
@@ -259,11 +259,12 @@ bool cmListCommand::HandleAppendCommand(std::vector<std::string> const& args)
std::string listString;
this->GetListString(listString, listName.c_str());
size_t cc;
- const char* sep = "";
for ( cc = 2; cc < args.size(); ++ cc )
{
- listString += sep;
- sep = ";";
+ if(listString.size())
+ {
+ listString += ";";
+ }
listString += args[cc];
}