diff --git a/Source/cmMakefileTargetGenerator.cxx b/Source/cmMakefileTargetGenerator.cxx index 756e5aa6da..6a02bdb10a 100644 --- a/Source/cmMakefileTargetGenerator.cxx +++ b/Source/cmMakefileTargetGenerator.cxx @@ -1926,8 +1926,7 @@ void cmMakefileTargetGenerator::WriteTargetDriverRule( this->LocalGenerator->MaybeRelativeToTopBinDir(buildTargetRuleName); // Build the list of target outputs to drive. - std::vector depends; - depends.push_back(main_output); + std::vector depends{ main_output }; const char* comment = nullptr; if (relink) {