summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorDaniel Eiband <daniel.eiband@brainlab.com>2019-10-17 14:20:52 (GMT)
committerDaniel Eiband <daniel.eiband@brainlab.com>2019-11-24 19:13:23 (GMT)
commit4e37508c8570bd6b846aa67478e97ec370ab4feb (patch)
tree9a1bee6d7b8074b57b97779c4f6d0d997b95be0b /Source
parent96e5042e468c5551b9b6ca01f8671295b2fda1a6 (diff)
downloadCMake-4e37508c8570bd6b846aa67478e97ec370ab4feb.zip
CMake-4e37508c8570bd6b846aa67478e97ec370ab4feb.tar.gz
CMake-4e37508c8570bd6b846aa67478e97ec370ab4feb.tar.bz2
cmLocalGenerator: Refactor to use cmMakeSingleCommandLine
Diffstat (limited to 'Source')
-rw-r--r--Source/cmLocalGenerator.cxx10
1 files changed, 3 insertions, 7 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx
index c43876c..bdc0358 100644
--- a/Source/cmLocalGenerator.cxx
+++ b/Source/cmLocalGenerator.cxx
@@ -2387,13 +2387,9 @@ void cmLocalGenerator::AddPchDependencies(cmGeneratorTarget* target)
file << "endif()\n";
}
- cmCustomCommandLines commandLines;
- cmCustomCommandLine currentLine;
- currentLine.push_back(cmSystemTools::GetCMakeCommand());
- currentLine.push_back(cmStrCat("-DPDB_PREFIX=", pdb_prefix));
- currentLine.push_back("-P");
- currentLine.push_back(copy_script);
- commandLines.push_back(std::move(currentLine));
+ cmCustomCommandLines commandLines = cmMakeSingleCommandLine(
+ { cmSystemTools::GetCMakeCommand(),
+ cmStrCat("-DPDB_PREFIX=", pdb_prefix), "-P", copy_script });
const std::string no_main_dependency;
const std::vector<std::string> no_deps;