diff options
author | John Parent <john.parent@kitware.com> | 2021-12-07 19:43:30 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-12-17 13:55:21 (GMT) |
commit | d7b18895bcc707ed58beed9e17434341e60a6060 (patch) | |
tree | 9c4dfc589a843668d2d642a864f7002060a6822f /Source/cmake.h | |
parent | 029c8f50652415baf4aa3dd96c9a8dc9626ae4ec (diff) | |
download | CMake-d7b18895bcc707ed58beed9e17434341e60a6060.zip CMake-d7b18895bcc707ed58beed9e17434341e60a6060.tar.gz CMake-d7b18895bcc707ed58beed9e17434341e60a6060.tar.bz2 |
cmake: Add filtered debug-find options
Add a `--debug-find-pkg=` option to debug find calls for specific
packages.
Add a `--debug-find-var=` option to debug find calls for specific
return variables.
Fixes: #21880
Diffstat (limited to 'Source/cmake.h')
-rw-r--r-- | Source/cmake.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/Source/cmake.h b/Source/cmake.h index 3f2b2ed..a356e65 100644 --- a/Source/cmake.h +++ b/Source/cmake.h @@ -486,7 +486,11 @@ public: //! Do we want debug output from the find commands during the cmake run. bool GetDebugFindOutput() const { return this->DebugFindOutput; } - void SetDebugFindOutputOn(bool b) { this->DebugFindOutput = b; } + bool GetDebugFindOutput(std::string const& var) const; + bool GetDebugFindPkgOutput(std::string const& var) const; + void SetDebugFindOutput(bool b) { this->DebugFindOutput = b; } + void SetDebugFindOutputPkgs(std::string const& args); + void SetDebugFindOutputVars(std::string const& args); //! Do we want trace output during the cmake run. bool GetTrace() const { return this->Trace; } @@ -704,6 +708,9 @@ private: std::vector<std::string> TraceOnlyThisSources; + std::set<std::string> DebugFindPkgs; + std::set<std::string> DebugFindVars; + LogLevel MessageLogLevel = LogLevel::LOG_STATUS; bool LogLevelWasSetViaCLI = false; bool LogContext = false; |