mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
GetSafeProperty: return std::string const&
This commit is contained in:
committed by
Brad King
parent
c09efe074d
commit
53675adbcf
@@ -2670,7 +2670,8 @@ void cmLocalGenerator::AddPchDependencies(cmGeneratorTarget* target)
|
||||
|
||||
std::string dest_file = to_file;
|
||||
|
||||
const std::string prefix = target->GetSafeProperty("PREFIX");
|
||||
std::string const& prefix =
|
||||
target->GetSafeProperty("PREFIX");
|
||||
if (!prefix.empty()) {
|
||||
dest_file =
|
||||
cmStrCat(to_dir, prefix, *ReuseFrom, extension);
|
||||
|
||||
Reference in New Issue
Block a user