mirror of
https://github.com/Kitware/CMake.git
synced 2026-03-10 02:19:10 -05:00
find_package: Avoid printing debug output header multiple times
This commit is contained in:
@@ -237,7 +237,6 @@ bool cmFindPackageCommand::InitialPass(std::vector<std::string> const& args)
|
|||||||
// Process debug mode
|
// Process debug mode
|
||||||
this->DebugMode = this->ComputeIfDebugModeWanted() ||
|
this->DebugMode = this->ComputeIfDebugModeWanted() ||
|
||||||
this->Makefile->GetCMakeInstance()->GetDebugFindPkgOutput(this->Name);
|
this->Makefile->GetCMakeInstance()->GetDebugFindPkgOutput(this->Name);
|
||||||
this->DebugBuffer.clear();
|
|
||||||
|
|
||||||
// Parse the arguments.
|
// Parse the arguments.
|
||||||
enum Doing
|
enum Doing
|
||||||
@@ -610,15 +609,14 @@ bool cmFindPackageCommand::InitialPass(std::vector<std::string> const& args)
|
|||||||
loadedPackage = true;
|
loadedPackage = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this->DebugMode) {
|
|
||||||
this->DebugMessage(this->DebugBuffer);
|
|
||||||
this->DebugBuffer.clear();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
this->AppendSuccessInformation();
|
this->AppendSuccessInformation();
|
||||||
|
|
||||||
|
if (!this->DebugBuffer.empty()) {
|
||||||
|
this->DebugMessage(this->DebugBuffer);
|
||||||
|
}
|
||||||
|
|
||||||
return loadedPackage;
|
return loadedPackage;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -947,11 +945,6 @@ bool cmFindPackageCommand::HandlePackageMode(
|
|||||||
result = false;
|
result = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this->DebugMode) {
|
|
||||||
this->DebugMessage(this->DebugBuffer);
|
|
||||||
this->DebugBuffer.clear();
|
|
||||||
}
|
|
||||||
|
|
||||||
// package not found
|
// package not found
|
||||||
if (result && !found) {
|
if (result && !found) {
|
||||||
// warn if package required or neither quiet nor in config mode
|
// warn if package required or neither quiet nor in config mode
|
||||||
|
|||||||
@@ -76,9 +76,5 @@
|
|||||||
[^
|
[^
|
||||||
]*/Tests/RunCMake/find_package/PackageRoot/ResolvedConfig.cmake
|
]*/Tests/RunCMake/find_package/PackageRoot/ResolvedConfig.cmake
|
||||||
|
|
||||||
Call Stack \(most recent call first\):
|
|
||||||
CMakeLists.txt:[0-9]+ \(include\)
|
|
||||||
+
|
|
||||||
CMake Debug Log at FromPATHEnv.cmake:[0-9]+ \(find_package\):
|
|
||||||
Call Stack \(most recent call first\):
|
Call Stack \(most recent call first\):
|
||||||
CMakeLists.txt:[0-9]+ \(include\)$
|
CMakeLists.txt:[0-9]+ \(include\)$
|
||||||
|
|||||||
@@ -76,9 +76,5 @@
|
|||||||
[^
|
[^
|
||||||
]*/Tests/RunCMake/find_package/PackageRoot/ResolvedConfig.cmake
|
]*/Tests/RunCMake/find_package/PackageRoot/ResolvedConfig.cmake
|
||||||
|
|
||||||
Call Stack \(most recent call first\):
|
|
||||||
CMakeLists.txt:[0-9]+ \(include\)
|
|
||||||
+
|
|
||||||
CMake Debug Log at FromPATHEnvDebugPkg.cmake:[0-9]+ \(find_package\):
|
|
||||||
Call Stack \(most recent call first\):
|
Call Stack \(most recent call first\):
|
||||||
CMakeLists.txt:[0-9]+ \(include\)$
|
CMakeLists.txt:[0-9]+ \(include\)$
|
||||||
|
|||||||
Reference in New Issue
Block a user