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

Method PopListFileVars

Source/cmMakefile.cxx:129–143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

127 this->Makefile->MarkVariableAsUsed(kCMAKE_CURRENT_LIST_DIR);
128 }
129 void PopListFileVars()
130 {
131 if (this->OldParent) {
132 this->Makefile->AddDefinition(kCMAKE_PARENT_LIST_FILE, *this->OldParent);
133 this->Makefile->MarkVariableAsUsed(kCMAKE_PARENT_LIST_FILE);
134 } else {
135 this->Makefile->RemoveDefinition(kCMAKE_PARENT_LIST_FILE);
136 }
137 this->Makefile->AddDefinition(kCMAKE_CURRENT_LIST_FILE, this->OldCurrent);
138 this->Makefile->AddDefinition(
139 kCMAKE_CURRENT_LIST_DIR,
140 cmSystemTools::GetFilenamePath(this->OldCurrent));
141 this->Makefile->MarkVariableAsUsed(kCMAKE_CURRENT_LIST_FILE);
142 this->Makefile->MarkVariableAsUsed(kCMAKE_CURRENT_LIST_DIR);
143 }
144};
145}
146

Callers 3

~IncludeScopeMethod · 0.80
~ListFileScopeMethod · 0.80
~BuildsystemFileScopeMethod · 0.80

Calls 3

MarkVariableAsUsedMethod · 0.80
AddDefinitionMethod · 0.45
RemoveDefinitionMethod · 0.45

Tested by

no test coverage detected