| 4170 | } |
| 4171 | |
| 4172 | void 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 | |
| 4187 | cmMakefile::VariablePushPop::VariablePushPop(cmMakefile* m) |
| 4188 | : Makefile(m) |
no test coverage detected