diff options
author | Brad King <brad.king@kitware.com> | 2024-01-10 15:14:03 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2024-01-10 15:14:24 (GMT) |
commit | 711e3f955a0030959bd7c437377f487f7b5a0cd8 (patch) | |
tree | 4ead49bec088f43bcd7889354a9ab33ca3727a57 /Source/cmMakefileTargetGenerator.cxx | |
parent | 87200ec97fb5945a942eec210fbc2d2d4194ed5c (diff) | |
parent | 7198f0d149a05cae8dec3da601e4dd4fc8526276 (diff) | |
download | CMake-711e3f955a0030959bd7c437377f487f7b5a0cd8.zip CMake-711e3f955a0030959bd7c437377f487f7b5a0cd8.tar.gz CMake-711e3f955a0030959bd7c437377f487f7b5a0cd8.tar.bz2 |
Merge topic 'makefile-depfile'
7198f0d149 Makefile: Fix double escaping when DEPFILE is used
5162ff64d4 Makefile: Reduce string copies
Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !9138
Diffstat (limited to 'Source/cmMakefileTargetGenerator.cxx')
-rw-r--r-- | Source/cmMakefileTargetGenerator.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Source/cmMakefileTargetGenerator.cxx b/Source/cmMakefileTargetGenerator.cxx index 8fda774..9ea611a 100644 --- a/Source/cmMakefileTargetGenerator.cxx +++ b/Source/cmMakefileTargetGenerator.cxx @@ -1724,11 +1724,10 @@ void cmMakefileTargetGenerator::GenerateCustomRuleFile( if (!ccg.GetCC().GetDepfile().empty()) { // Add dependency over timestamp file for dependencies management - auto dependTimestamp = cmSystemTools::ConvertToOutputPath( - this->LocalGenerator->MaybeRelativeToTopBinDir( - cmStrCat(this->TargetBuildDirectoryFull, "/compiler_depend.ts"))); + auto dependTimestamp = this->LocalGenerator->MaybeRelativeToTopBinDir( + cmStrCat(this->TargetBuildDirectoryFull, "/compiler_depend.ts")); - depends.push_back(dependTimestamp); + depends.emplace_back(std::move(dependTimestamp)); } // Write the rule. |