mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-14 19:08:07 +08:00
GetSafeProperty: return std::string const&
This commit is contained in:

committed by
Brad King

parent
c09efe074d
commit
53675adbcf
@@ -405,8 +405,9 @@ void cmXCodeScheme::WriteBuildableReference(cmXMLWriter& xout,
|
||||
void cmXCodeScheme::WriteCustomWorkingDirectory(
|
||||
cmXMLWriter& xout, const std::string& configuration)
|
||||
{
|
||||
std::string propertyValue = this->Target->GetTarget()->GetSafeProperty(
|
||||
"XCODE_SCHEME_WORKING_DIRECTORY");
|
||||
std::string const& propertyValue =
|
||||
this->Target->GetTarget()->GetSafeProperty(
|
||||
"XCODE_SCHEME_WORKING_DIRECTORY");
|
||||
if (propertyValue.empty()) {
|
||||
xout.Attribute("useCustomWorkingDirectory", "NO");
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user