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

Method IsDefinitionSet

Source/cmMakefile.cxx:2359–2374  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2357}
2358
2359bool 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
2376bool cmMakefile::IsNormalDefinitionSet(std::string const& name) const
2377{

Callers 15

HandleLevel1Method · 0.80
WriteCommonCodeRulesMethod · 0.80
FindModuleMethod · 0.80
HandlePackageModeMethod · 0.80
ForceResponseFileMethod · 0.80
AddOutputMethod · 0.80
InitRccMethod · 0.80
WriteLibraryRulesMethod · 0.80
GenerateObjectsMethod · 0.80

Calls 5

GetStateMethod · 0.95
GetVariableWatchMethod · 0.95
VariableAccessedMethod · 0.80
GetDefinitionMethod · 0.45

Tested by

no test coverage detected