From 4e37508c8570bd6b846aa67478e97ec370ab4feb Mon Sep 17 00:00:00 2001 From: Daniel Eiband Date: Thu, 17 Oct 2019 16:20:52 +0200 Subject: cmLocalGenerator: Refactor to use cmMakeSingleCommandLine --- Source/cmLocalGenerator.cxx | 10 +++------- bootstrap | 1 + 2 files changed, 4 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 no_deps; diff --git a/bootstrap b/bootstrap index 4432d49..8606dda 100755 --- a/bootstrap +++ b/bootstrap @@ -294,6 +294,7 @@ CMAKE_CXX_SOURCES="\ cmCreateTestSourceList \ cmCustomCommand \ cmCustomCommandGenerator \ + cmCustomCommandLines \ cmDefinePropertyCommand \ cmDefinitions \ cmDepends \ -- cgit v0.12