mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-25 04:09:36 +03:00
Merge branch 'backport-4.2-find_package-stack' into find_package-stack
This commit is contained in:
+15
-1
@@ -1037,7 +1037,21 @@ public:
|
||||
// searches
|
||||
std::deque<std::vector<std::string>> FindPackageRootPathStack;
|
||||
|
||||
friend class cmFindPackageStackRAII;
|
||||
/**
|
||||
* RAII type to manage the find_package call stack.
|
||||
*/
|
||||
class FindPackageStackRAII
|
||||
{
|
||||
cmMakefile* Makefile;
|
||||
|
||||
public:
|
||||
FindPackageStackRAII(cmMakefile* mf, std::string const& pkg,
|
||||
std::shared_ptr<cmPackageInformation const> pkgInfo);
|
||||
~FindPackageStackRAII();
|
||||
|
||||
FindPackageStackRAII(FindPackageStackRAII const&) = delete;
|
||||
FindPackageStackRAII& operator=(FindPackageStackRAII const&) = delete;
|
||||
};
|
||||
|
||||
class DebugFindPkgRAII
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user