diff options
author | Brad King <brad.king@kitware.com> | 2022-02-11 14:17:13 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2022-02-11 14:17:19 (GMT) |
commit | bdbacf6b65b0862395175c477833e14ff4d3fdec (patch) | |
tree | 225ee35a66d56b9377236478989989c366341064 /Source/cmMakefile.h | |
parent | 551b0af1e525ba4568f7787287cf4fc793ad233f (diff) | |
parent | 38de1bef2d10270d5f1be1fef2760310571c4026 (diff) | |
download | CMake-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.h | 14 |
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; |