summaryrefslogtreecommitdiffstats
path: root/Source/cmFileCommand.cxx
diff options
context:
space:
mode:
authorRobert Goulet <robert.goulet@autodesk.com>2015-02-26 19:18:04 (GMT)
committerBrad King <brad.king@kitware.com>2015-02-26 20:04:07 (GMT)
commitc48141744e7b14940dc55ec98da631c4d2356dd7 (patch)
tree620ee7c35bd8e2144edba07cc4b96f0edd1277dc /Source/cmFileCommand.cxx
parent99575c9ac114e6f5d388e1ee7b9a3f788d773c9e (diff)
downloadCMake-c48141744e7b14940dc55ec98da631c4d2356dd7.zip
CMake-c48141744e7b14940dc55ec98da631c4d2356dd7.tar.gz
CMake-c48141744e7b14940dc55ec98da631c4d2356dd7.tar.bz2
install: Write the entire installation manifest at once
Avoid a separate open/close for each file installed. Use a single file(WRITE) instead of a loop with file(APPEND).
Diffstat (limited to 'Source/cmFileCommand.cxx')
-rw-r--r--Source/cmFileCommand.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/cmFileCommand.cxx b/Source/cmFileCommand.cxx
index 579e715..d994659 100644
--- a/Source/cmFileCommand.cxx
+++ b/Source/cmFileCommand.cxx
@@ -1907,7 +1907,10 @@ protected:
std::string Manifest;
void ManifestAppend(std::string const& file)
{
- this->Manifest += ";";
+ if (!this->Manifest.empty())
+ {
+ this->Manifest += ";";
+ }
this->Manifest += file.substr(this->DestDirLength);
}