| 60 | namespace { |
| 61 | |
| 62 | bool 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 |
no test coverage detected
searching dependent graphs…