| 48 | } |
| 49 | |
| 50 | std::string cmGeneratorExpression::Evaluate( |
| 51 | std::string input, cmLocalGenerator const* lg, std::string const& config, |
| 52 | cmGeneratorTarget const* headTarget, |
| 53 | cmGeneratorExpressionDAGChecker* dagChecker, |
| 54 | cmGeneratorTarget const* currentTarget, std::string const& language) |
| 55 | { |
| 56 | if (Find(input) != std::string::npos) { |
| 57 | #ifndef CMAKE_BOOTSTRAP |
| 58 | auto profilingRAII = lg->GetCMakeInstance()->CreateProfilingEntry( |
| 59 | "genex_compile_eval", input); |
| 60 | #endif |
| 61 | |
| 62 | cm::GenEx::Context context(lg, config, language); |
| 63 | cmCompiledGeneratorExpression cge(*lg->GetCMakeInstance(), |
| 64 | cmListFileBacktrace(), std::move(input)); |
| 65 | return cge.Evaluate(context, dagChecker, headTarget, currentTarget); |
| 66 | } |
| 67 | return input; |
| 68 | } |
| 69 | |
| 70 | std::string const& cmCompiledGeneratorExpression::Evaluate( |
| 71 | cmLocalGenerator const* lg, std::string const& config, |
no test coverage detected