| 323 | } |
| 324 | |
| 325 | bool cmGlobalGenerator::CheckTargetsForMissingSources() const |
| 326 | { |
| 327 | bool failed = false; |
| 328 | for (auto const& localGen : this->LocalGenerators) { |
| 329 | for (auto const& target : localGen->GetGeneratorTargets()) { |
| 330 | if (!target->CanCompileSources() || |
| 331 | target->GetProperty("ghs_integrity_app").IsOn()) { |
| 332 | continue; |
| 333 | } |
| 334 | |
| 335 | if (target->GetAllConfigSources().empty()) { |
| 336 | std::ostringstream e; |
| 337 | e << "No SOURCES given to target: " << target->GetName(); |
| 338 | this->GetCMakeInstance()->IssueMessage( |
| 339 | MessageType::FATAL_ERROR, e.str(), target->GetBacktrace()); |
| 340 | failed = true; |
| 341 | } |
| 342 | } |
| 343 | } |
| 344 | return failed; |
| 345 | } |
| 346 | |
| 347 | void cmGlobalGenerator::CheckTargetLinkLibraries() const |
| 348 | { |
no test coverage detected