| 111 | { |
| 112 | } |
| 113 | void PushListFileVars(std::string const& newCurrent) |
| 114 | { |
| 115 | if (cmValue p = this->Makefile->GetDefinition(kCMAKE_PARENT_LIST_FILE)) { |
| 116 | this->OldParent = *p; |
| 117 | } |
| 118 | if (cmValue c = this->Makefile->GetDefinition(kCMAKE_CURRENT_LIST_FILE)) { |
| 119 | this->OldCurrent = *c; |
| 120 | this->Makefile->AddDefinition(kCMAKE_PARENT_LIST_FILE, this->OldCurrent); |
| 121 | this->Makefile->MarkVariableAsUsed(kCMAKE_PARENT_LIST_FILE); |
| 122 | } |
| 123 | this->Makefile->AddDefinition(kCMAKE_CURRENT_LIST_FILE, newCurrent); |
| 124 | this->Makefile->AddDefinition(kCMAKE_CURRENT_LIST_DIR, |
| 125 | cmSystemTools::GetFilenamePath(newCurrent)); |
| 126 | this->Makefile->MarkVariableAsUsed(kCMAKE_CURRENT_LIST_FILE); |
| 127 | this->Makefile->MarkVariableAsUsed(kCMAKE_CURRENT_LIST_DIR); |
| 128 | } |
| 129 | void PopListFileVars() |
| 130 | { |
| 131 | if (this->OldParent) { |
no test coverage detected