mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-24 09:09:43 -05:00
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
This commit is contained in:
@@ -177,13 +177,14 @@ cmFindProgramCommand::cmFindProgramCommand(cmExecutionStatus& status)
|
||||
// cmFindProgramCommand
|
||||
bool cmFindProgramCommand::InitialPass(std::vector<std::string> const& argsIn)
|
||||
{
|
||||
this->DebugMode = this->ComputeIfDebugModeWanted();
|
||||
|
||||
this->CMakePathName = "PROGRAM";
|
||||
|
||||
// call cmFindBase::ParseArguments
|
||||
if (!this->ParseArguments(argsIn)) {
|
||||
return false;
|
||||
}
|
||||
this->DebugMode = this->ComputeIfDebugModeWanted(this->VariableName);
|
||||
|
||||
if (this->AlreadyDefined) {
|
||||
this->NormalizeFindResult();
|
||||
|
||||
Reference in New Issue
Block a user