mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-30 02:59:22 -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:
@@ -32,13 +32,14 @@ cmFindLibraryCommand::cmFindLibraryCommand(cmExecutionStatus& status)
|
||||
// cmFindLibraryCommand
|
||||
bool cmFindLibraryCommand::InitialPass(std::vector<std::string> const& argsIn)
|
||||
{
|
||||
this->DebugMode = this->ComputeIfDebugModeWanted();
|
||||
this->CMakePathName = "LIBRARY";
|
||||
|
||||
if (!this->ParseArguments(argsIn)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
this->DebugMode = this->ComputeIfDebugModeWanted(this->VariableName);
|
||||
|
||||
if (this->AlreadyDefined) {
|
||||
this->NormalizeFindResult();
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user