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

Function HasKnownObjectFileLocation

Source/cmGeneratorExpressionNode.cxx:62–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60namespace {
61
62bool HasKnownObjectFileLocation(cm::GenEx::Evaluation* eval,
63 GeneratorExpressionContent const* content,
64 std::string const& genex,
65 cmGeneratorTarget const* target)
66{
67 std::string reason;
68 if (!eval->EvaluateForBuildsystem &&
69 !target->Target->HasKnownObjectFileLocation(&reason)) {
70 std::ostringstream e;
71 e << "The evaluation of the " << genex
72 << " generator expression "
73 "is only suitable for consumption by CMake (limited"
74 << reason
75 << "). "
76 "It is not suitable for writing out elsewhere.";
77 reportError(eval, content->GetOriginalExpression(), e.str());
78 return false;
79 }
80 return true;
81}
82
83} // namespace
84

Callers 2

EvaluateMethod · 0.85
EvaluateMethod · 0.85

Calls 4

reportErrorFunction · 0.85
GetOriginalExpressionMethod · 0.80
strMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…