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

Method AppendCustomCommandSideEffects

Source/cmGeneratorTarget.cxx:1076–1091  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1074}
1075
1076void cmGeneratorTarget::AppendCustomCommandSideEffects(
1077 std::set<cmGeneratorTarget const*>& sideEffects) const
1078{
1079 if (!this->GetPreBuildCommands().empty() ||
1080 !this->GetPreLinkCommands().empty() ||
1081 !this->GetPostBuildCommands().empty()) {
1082 sideEffects.insert(this);
1083 } else {
1084 for (auto const& source : this->GetAllConfigSources()) {
1085 if (source.Source->GetCustomCommand()) {
1086 sideEffects.insert(this);
1087 break;
1088 }
1089 }
1090 }
1091}
1092
1093void cmGeneratorTarget::AppendLanguageSideEffects(
1094 std::map<std::string, std::set<cmGeneratorTarget const*>>& sideEffects) const

Callers 1

Calls 4

GetAllConfigSourcesMethod · 0.95
GetCustomCommandMethod · 0.80
emptyMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected