summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOrkun Tokdemir <ilhanorkuntokdemir@gmail.com>2024-01-09 11:27:17 (GMT)
committerOrkun Tokdemir <ilhanorkuntokdemir@gmail.com>2024-01-09 12:05:01 (GMT)
commit4d928592eb1c0a47c2eea3c2df25cf957c2e538b (patch)
tree2d43012769bb2ec2887b1a449c7d9830d5c4d03d
parent3e533bd64ffda57a6d0e6af1d361913a2a948873 (diff)
downloadCMake-4d928592eb1c0a47c2eea3c2df25cf957c2e538b.zip
CMake-4d928592eb1c0a47c2eea3c2df25cf957c2e538b.tar.gz
CMake-4d928592eb1c0a47c2eea3c2df25cf957c2e538b.tar.bz2
Makefile: Remove redundant push_back
-rw-r--r--Source/cmMakefileTargetGenerator.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/cmMakefileTargetGenerator.cxx b/Source/cmMakefileTargetGenerator.cxx
index 756e5aa..6a02bdb 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<std::string> depends;
- depends.push_back(main_output);
+ std::vector<std::string> depends{ main_output };
const char* comment = nullptr;
if (relink) {