summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefile.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-02-11 14:17:13 (GMT)
committerKitware Robot <kwrobot@kitware.com>2022-02-11 14:17:19 (GMT)
commitbdbacf6b65b0862395175c477833e14ff4d3fdec (patch)
tree225ee35a66d56b9377236478989989c366341064 /Source/cmMakefile.h
parent551b0af1e525ba4568f7787287cf4fc793ad233f (diff)
parent38de1bef2d10270d5f1be1fef2760310571c4026 (diff)
downloadCMake-bdbacf6b65b0862395175c477833e14ff4d3fdec.zip
CMake-bdbacf6b65b0862395175c477833e14ff4d3fdec.tar.gz
CMake-bdbacf6b65b0862395175c477833e14ff4d3fdec.tar.bz2
Merge topic 'debug-find'
38de1bef2d find_package: Improve --debug-find-pkg= when using a find module d634d20397 find_package: Avoid printing debug output header multiple times df3e29450a find_package: Mention package name in Config mode debug output 636ca7f25c find_package: Fix find module name in --debug-find output 596e185409 find_package: Improve formatting of --debug-find output 2f43527574 Tests: Improve order of RunCMake.find_package cases a690523fcf cmFindPackageCommand: Drop ComputeIfDebugModeWanted overload Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !6973
Diffstat (limited to 'Source/cmMakefile.h')
-rw-r--r--Source/cmMakefile.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/Source/cmMakefile.h b/Source/cmMakefile.h
index ecac95e..ad8a014 100644
--- a/Source/cmMakefile.h
+++ b/Source/cmMakefile.h
@@ -932,6 +932,18 @@ public:
// searches
std::deque<std::vector<std::string>> FindPackageRootPathStack;
+ class DebugFindPkgRAII
+ {
+ cmMakefile* Makefile;
+ bool OldValue;
+
+ public:
+ DebugFindPkgRAII(cmMakefile* mf, std::string const& pkg);
+ ~DebugFindPkgRAII();
+ };
+
+ bool GetDebugFindPkgMode() const;
+
void MaybeWarnCMP0074(std::string const& pkg);
void MaybeWarnUninitialized(std::string const& variable,
const char* sourceFilename) const;
@@ -1105,6 +1117,8 @@ private:
std::vector<BT<GeneratorAction>> GeneratorActions;
bool GeneratorActionsInvoked = false;
+ bool DebugFindPkg = false;
+
bool CheckSystemVars;
bool CheckCMP0000;
std::set<std::string> WarnedCMP0074;