| 2357 | } |
| 2358 | |
| 2359 | bool cmMakefile::IsDefinitionSet(std::string const& name) const |
| 2360 | { |
| 2361 | cmValue def = this->StateSnapshot.GetDefinition(name); |
| 2362 | if (!def) { |
| 2363 | def = this->GetState()->GetInitializedCacheValue(name); |
| 2364 | } |
| 2365 | #ifndef CMAKE_BOOTSTRAP |
| 2366 | if (cmVariableWatch* vv = this->GetVariableWatch()) { |
| 2367 | if (!def) { |
| 2368 | vv->VariableAccessed( |
| 2369 | name, cmVariableWatch::UNKNOWN_VARIABLE_DEFINED_ACCESS, nullptr, this); |
| 2370 | } |
| 2371 | } |
| 2372 | #endif |
| 2373 | return def != nullptr; |
| 2374 | } |
| 2375 | |
| 2376 | bool cmMakefile::IsNormalDefinitionSet(std::string const& name) const |
| 2377 | { |
no test coverage detected