summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalGenerator.cxx
diff options
context:
space:
mode:
authorVitaly Stakhovsky <vvs31415@gitlab.org>2020-04-30 14:00:00 (GMT)
committerBrad King <brad.king@kitware.com>2020-04-30 14:27:16 (GMT)
commit53675adbcf2f485d68c45e53d28baf6db220264c (patch)
tree8d0d761714de6f0a8f7c512f1af05e2f6bde493b /Source/cmGlobalGenerator.cxx
parentc09efe074d793203ab846e97bde8d03e4714dc2a (diff)
downloadCMake-53675adbcf2f485d68c45e53d28baf6db220264c.zip
CMake-53675adbcf2f485d68c45e53d28baf6db220264c.tar.gz
CMake-53675adbcf2f485d68c45e53d28baf6db220264c.tar.bz2
GetSafeProperty: return std::string const&
Diffstat (limited to 'Source/cmGlobalGenerator.cxx')
-rw-r--r--Source/cmGlobalGenerator.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmGlobalGenerator.cxx b/Source/cmGlobalGenerator.cxx
index 2664fb0..5d42b55 100644
--- a/Source/cmGlobalGenerator.cxx
+++ b/Source/cmGlobalGenerator.cxx
@@ -384,9 +384,9 @@ bool cmGlobalGenerator::CheckTargetsForPchCompilePdb() const
}
}
- const std::string reuseFrom =
+ std::string const& reuseFrom =
target->GetSafeProperty("PRECOMPILE_HEADERS_REUSE_FROM");
- const std::string compilePdb =
+ std::string const& compilePdb =
target->GetSafeProperty("COMPILE_PDB_NAME");
if (!reuseFrom.empty() && reuseFrom != compilePdb) {