find_package: Mention package name in Config mode debug output

Otherwise, if there are no paths considered then the output does not
specify the name of the package.
This commit is contained in:
Brad King
2022-02-10 14:07:41 -05:00
parent 636ca7f25c
commit df3e29450a
4 changed files with 8 additions and 4 deletions

View File

@@ -1117,7 +1117,8 @@ bool cmFindPackageCommand::FindConfig()
if (this->DebugMode) {
this->DebugBuffer = cmStrCat(this->DebugBuffer,
"find_package considered the following "
"locations for the Config module:\n");
"locations for ",
this->Name, "'s Config module:\n");
}
// Search for frameworks.

View File

@@ -1 +1,2 @@
find_package considered the following locations for the Config module:
find_package considered the following locations for
ThisPackageHopefullyDoesNotExist's Config module:

View File

@@ -65,7 +65,8 @@
none
find_package considered the following locations for the Config module:
find_package considered the following locations for Resolved's Config
module:
[^
]*/Tests/RunCMake/find_package/PackageRoot/ResolvedConfig.cmake

View File

@@ -65,7 +65,8 @@
none
find_package considered the following locations for the Config module:
find_package considered the following locations for Resolved's Config
module:
[^
]*/Tests/RunCMake/find_package/PackageRoot/ResolvedConfig.cmake