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

Method UpdateParentListFileVariable

Source/cmMakefile.cxx:4172–4185  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4170}
4171
4172void cmMakefile::UpdateParentListFileVariable()
4173{
4174 // CMP0198 determines CMAKE_PARENT_LIST_FILE behavior in CMakeLists.txt
4175 if (this->GetPolicyStatus(cmPolicies::CMP0198) == cmPolicies::NEW) {
4176 this->RemoveDefinition(kCMAKE_PARENT_LIST_FILE);
4177 } else {
4178 std::string currentSourceDir =
4179 this->StateSnapshot.GetDirectory().GetCurrentSource();
4180 std::string currentStart =
4181 this->GetCMakeInstance()->GetCMakeListFile(currentSourceDir);
4182
4183 this->AddDefinition(kCMAKE_PARENT_LIST_FILE, currentStart);
4184 }
4185}
4186
4187cmMakefile::VariablePushPop::VariablePushPop(cmMakefile* m)
4188 : Makefile(m)

Callers 2

ConfigureMethod · 0.95
SetPolicyMethod · 0.95

Calls 6

GetPolicyStatusMethod · 0.95
RemoveDefinitionMethod · 0.95
GetCMakeInstanceMethod · 0.95
AddDefinitionMethod · 0.95
GetCMakeListFileMethod · 0.80
GetDirectoryMethod · 0.45

Tested by

no test coverage detected