MCPcopy Create free account
hub / github.com/Kitware/CMake / GetPropertyOrDefault

Method GetPropertyOrDefault

Source/cmGeneratorTarget.cxx:6528–6535  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6526}
6527
6528std::string cmGeneratorTarget::GetPropertyOrDefault(
6529 std::string const& property, std::string defaultValue) const
6530{
6531 if (cmValue name = this->GetProperty(property)) {
6532 return *name;
6533 }
6534 return defaultValue;
6535}

Callers 2

GetSwiftModuleNameMethod · 0.95

Calls 1

GetPropertyMethod · 0.95

Tested by

no test coverage detected