diff options
author | Brad King <brad.king@kitware.com> | 2023-05-22 17:17:41 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2023-05-22 21:14:54 (GMT) |
commit | 93ee2b369c8f2937d848026bad40b09586a5c487 (patch) | |
tree | 86a9b3cbdc529cea02b36190295bbf29a35806b0 /Source/cmCommonTargetGenerator.cxx | |
parent | 7b3ec2b891d587828808845bfc390fb33aa120d9 (diff) | |
download | CMake-93ee2b369c8f2937d848026bad40b09586a5c487.zip CMake-93ee2b369c8f2937d848026bad40b09586a5c487.tar.gz CMake-93ee2b369c8f2937d848026bad40b09586a5c487.tar.bz2 |
Source: Fix -Wdangling-reference warnings exposed by gcc 13
Diffstat (limited to 'Source/cmCommonTargetGenerator.cxx')
-rw-r--r-- | Source/cmCommonTargetGenerator.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmCommonTargetGenerator.cxx b/Source/cmCommonTargetGenerator.cxx index 2615494..e635dd9 100644 --- a/Source/cmCommonTargetGenerator.cxx +++ b/Source/cmCommonTargetGenerator.cxx @@ -236,7 +236,7 @@ std::string cmCommonTargetGenerator::GetManifests(const std::string& config) manifests.reserve(manifest_srcs.size()); std::string lang = this->GeneratorTarget->GetLinkerLanguage(config); - std::string const& manifestFlag = + std::string manifestFlag = this->Makefile->GetDefinition("CMAKE_" + lang + "_LINKER_MANIFEST_FLAG"); for (cmSourceFile const* manifest_src : manifest_srcs) { manifests.push_back(manifestFlag + |