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

Method message

Source/cmTarget.cxx:1994–2005  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1992 cm::optional<cmPolicies::PolicyID> Policy;
1993
1994 std::string message(std::string const& prop, cmTarget* target) const
1995 {
1996 std::string msg;
1997 if (this->Condition == ReadOnlyCondition::All) {
1998 msg = " property is read-only for target(\"";
1999 } else if (this->Condition == ReadOnlyCondition::Imported) {
2000 msg = " property can't be set on imported targets(\"";
2001 } else if (this->Condition == ReadOnlyCondition::NonImported) {
2002 msg = " property can't be set on non-imported targets(\"";
2003 }
2004 return cmStrCat(prop, msg, target->GetName(), "\")\n");
2005 }
2006
2007 bool isReadOnly(std::string const& prop, cmMakefile* context,
2008 cmTarget* target) const

Callers 2

isReadOnlyMethod · 0.95
mainFunction · 0.45

Calls 2

cmStrCatFunction · 0.70
GetNameMethod · 0.45

Tested by

no test coverage detected