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

Function HandleTarget

Source/cmSetPropertyCommand.cxx:741–762  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

739}
740
741bool HandleTarget(cmTarget* target, cmMakefile& makefile,
742 std::string const& propertyName,
743 std::string const& propertyValue, bool appendAsString,
744 bool appendMode, bool remove)
745{
746 // Set or append the property.
747 if (appendMode) {
748 target->AppendProperty(propertyName, propertyValue,
749 makefile.GetBacktrace(), appendAsString);
750 } else {
751 if (remove) {
752 target->SetProperty(propertyName, nullptr);
753 } else {
754 target->SetProperty(propertyName, propertyValue);
755 }
756 }
757
758 // Check the resulting value.
759 target->CheckProperty(propertyName, &makefile);
760
761 return true;
762}
763
764bool HandleFileSetMode(cmExecutionStatus& status,
765 std::set<std::string> const& names,

Callers 1

HandleTargetModeFunction · 0.85

Calls 4

CheckPropertyMethod · 0.80
AppendPropertyMethod · 0.45
GetBacktraceMethod · 0.45
SetPropertyMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…