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

Method CheckTargetsForMissingSources

Source/cmGlobalGenerator.cxx:325–345  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

323}
324
325bool 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
347void cmGlobalGenerator::CheckTargetLinkLibraries() const
348{

Callers 1

ComputeMethod · 0.95

Calls 10

GetCMakeInstanceMethod · 0.95
GetAllConfigSourcesMethod · 0.80
strMethod · 0.80
CanCompileSourcesMethod · 0.45
IsOnMethod · 0.45
GetPropertyMethod · 0.45
emptyMethod · 0.45
GetNameMethod · 0.45
IssueMessageMethod · 0.45
GetBacktraceMethod · 0.45

Tested by

no test coverage detected