| 419 | } |
| 420 | |
| 421 | void cmComputeTargetDepends::CollectSideEffectsForTarget( |
| 422 | std::set<size_t>& visited, size_t depender_index) |
| 423 | { |
| 424 | if (!visited.count(depender_index)) { |
| 425 | auto& se = this->SideEffects[depender_index]; |
| 426 | visited.insert(depender_index); |
| 427 | this->Targets[depender_index]->AppendCustomCommandSideEffects( |
| 428 | se.CustomCommandSideEffects); |
| 429 | this->Targets[depender_index]->AppendLanguageSideEffects( |
| 430 | se.LanguageSideEffects); |
| 431 | |
| 432 | for (auto const& edge : this->InitialGraph[depender_index]) { |
| 433 | this->CollectSideEffectsForTarget(visited, edge); |
| 434 | auto const& dse = this->SideEffects[edge]; |
| 435 | se.CustomCommandSideEffects.insert(dse.CustomCommandSideEffects.cbegin(), |
| 436 | dse.CustomCommandSideEffects.cend()); |
| 437 | for (auto const& it : dse.LanguageSideEffects) { |
| 438 | se.LanguageSideEffects[it.first].insert(it.second.cbegin(), |
| 439 | it.second.cend()); |
| 440 | } |
| 441 | } |
| 442 | } |
| 443 | } |
| 444 | |
| 445 | void cmComputeTargetDepends::ComputeIntermediateGraph() |
| 446 | { |
no test coverage detected