| 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 |
no test coverage detected