mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-11 16:32:14 -06:00
find_package: Fix find module name in --debug-find output
This commit is contained in:
@@ -789,14 +789,13 @@ void cmFindPackageCommand::RestoreFindDefinitions()
|
||||
|
||||
bool cmFindPackageCommand::FindModule(bool& found)
|
||||
{
|
||||
std::string module = cmStrCat("Find", this->Name, ".cmake");
|
||||
std::string moduleFileName = cmStrCat("Find", this->Name, ".cmake");
|
||||
|
||||
bool system = false;
|
||||
std::string debugBuffer =
|
||||
cmStrCat("find_package considered the following paths for ", this->Name,
|
||||
".cmake\n");
|
||||
std::string debugBuffer = cmStrCat(
|
||||
"find_package considered the following paths for ", moduleFileName, ":\n");
|
||||
std::string mfile = this->Makefile->GetModulesFile(
|
||||
module, system, this->DebugMode, debugBuffer);
|
||||
moduleFileName, system, this->DebugMode, debugBuffer);
|
||||
if (this->DebugMode) {
|
||||
if (mfile.empty()) {
|
||||
debugBuffer = cmStrCat(debugBuffer, "The file was not found.\n");
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
^CMake Debug Log at FromPATHEnv.cmake:[0-9]+ \(find_package\):
|
||||
find_package considered the following paths for Resolved.cmake
|
||||
find_package considered the following paths for FindResolved.cmake:
|
||||
|
||||
[^
|
||||
]*/Modules/FindResolved.cmake
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
^CMake Debug Log at FromPATHEnvDebugPkg.cmake:[0-9]+ \(find_package\):
|
||||
find_package considered the following paths for Resolved.cmake
|
||||
find_package considered the following paths for FindResolved.cmake:
|
||||
|
||||
[^
|
||||
]*/Modules/FindResolved.cmake
|
||||
|
||||
Reference in New Issue
Block a user