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

Function CheckIMPORTED_GLOBAL

Source/cmTarget.cxx:2553–2568  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2551}
2552
2553void CheckIMPORTED_GLOBAL(cmTarget const* target, cmMakefile* context)
2554{
2555 auto const& targets = context->GetOwnedImportedTargets();
2556 auto it =
2557 std::find_if(targets.begin(), targets.end(),
2558 [&](std::unique_ptr<cmTarget> const& importTarget) -> bool {
2559 return target == importTarget.get();
2560 });
2561 if (it == targets.end()) {
2562 std::ostringstream e;
2563 e << "Attempt to promote imported target \"" << target->GetName()
2564 << "\" to global scope (by setting IMPORTED_GLOBAL) "
2565 "which is not built in this directory.";
2566 context->IssueMessage(MessageType::FATAL_ERROR, e.str());
2567 }
2568}
2569}
2570
2571void cmTarget::CheckProperty(std::string const& prop,

Callers 1

CheckPropertyMethod · 0.85

Calls 6

strMethod · 0.80
beginMethod · 0.45
endMethod · 0.45
getMethod · 0.45
GetNameMethod · 0.45
IssueMessageMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…