summaryrefslogtreecommitdiff
path: root/Source/cmGlobalNMakeMakefileGenerator.cxx
diff options
context:
space:
mode:
authorVitaly Stakhovsky <vvs31415@gitlab.org>2021-05-11 11:20:00 -0400
committerVitaly Stakhovsky <vvs31415@gitlab.org>2021-05-11 11:20:04 -0400
commit5e8fa0b7bcdd8f4f1af2a61335df9a1c952dbbdf (patch)
tree440ad6c931ede616674c1616cb328efc0ad80cf0 /Source/cmGlobalNMakeMakefileGenerator.cxx
parentee87e53d3732a6482841c01c16e89f2822137d0e (diff)
downloadcmake-5e8fa0b7bcdd8f4f1af2a61335df9a1c952dbbdf.tar.gz
Source: Minor code improvements
Diffstat (limited to 'Source/cmGlobalNMakeMakefileGenerator.cxx')
-rw-r--r--Source/cmGlobalNMakeMakefileGenerator.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/Source/cmGlobalNMakeMakefileGenerator.cxx b/Source/cmGlobalNMakeMakefileGenerator.cxx
index 313f39b5e8..f08b1da36a 100644
--- a/Source/cmGlobalNMakeMakefileGenerator.cxx
+++ b/Source/cmGlobalNMakeMakefileGenerator.cxx
@@ -43,9 +43,7 @@ bool cmGlobalNMakeMakefileGenerator::FindMakeProgram(cmMakefile* mf)
return false;
}
if (cmProp nmakeCommand = mf->GetDefinition("CMAKE_MAKE_PROGRAM")) {
- std::vector<std::string> command;
- command.emplace_back(*nmakeCommand);
- command.emplace_back("-?");
+ std::vector<std::string> command{ *nmakeCommand, "-?" };
std::string out;
std::string err;
if (!cmSystemTools::RunSingleCommand(command, &out, &err, nullptr, nullptr,