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

Method WriteCustomCommand

Source/cmVisualStudio10TargetGenerator.cxx:1755–1772  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1753}
1754
1755void cmVisualStudio10TargetGenerator::WriteCustomCommand(
1756 Elem& e0, cmSourceFile const* sf)
1757{
1758 if (this->LocalGenerator->GetSourcesVisited(this->GeneratorTarget)
1759 .insert(sf)
1760 .second) {
1761 if (std::vector<cmSourceFile*> const* depends =
1762 this->GeneratorTarget->GetSourceDepends(sf)) {
1763 for (cmSourceFile const* di : *depends) {
1764 this->WriteCustomCommand(e0, di);
1765 }
1766 }
1767 if (cmCustomCommand const* command = sf->GetCustomCommand()) {
1768 // C# projects write their <Target> within WriteCustomRule()
1769 this->WriteCustomRule(e0, sf, *command);
1770 }
1771 }
1772}
1773
1774void cmVisualStudio10TargetGenerator::WriteCustomRule(
1775 Elem& e0, cmSourceFile const* source, cmCustomCommand const& command)

Callers 1

WriteCustomCommandsMethod · 0.95

Calls 4

WriteCustomRuleMethod · 0.95
GetSourceDependsMethod · 0.80
GetCustomCommandMethod · 0.80
insertMethod · 0.45

Tested by

no test coverage detected