| 4234 | } |
| 4235 | |
| 4236 | cmMakefile::FindPackageStackRAII::FindPackageStackRAII( |
| 4237 | cmMakefile* mf, std::string const& name, |
| 4238 | std::shared_ptr<cmPackageInformation const> pkgInfo) |
| 4239 | : Makefile(mf) |
| 4240 | { |
| 4241 | this->Makefile->FindPackageStack = |
| 4242 | this->Makefile->FindPackageStack.Push(cmFindPackageCall{ |
| 4243 | name, |
| 4244 | std::move(pkgInfo), |
| 4245 | this->Makefile->FindPackageStackNextIndex, |
| 4246 | }); |
| 4247 | this->Makefile->FindPackageStackNextIndex++; |
| 4248 | } |
| 4249 | |
| 4250 | cmMakefile::FindPackageStackRAII::~FindPackageStackRAII() |
| 4251 | { |