mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-09 15:20:56 -06:00
CPS: Improve invalid namespace error
When CPS export fails due to a dependency on an improperly named external target, reiterate the "canonical namespace" in the error message for clarity.
This commit is contained in:
@@ -305,7 +305,8 @@ bool cmExportPackageInfoGenerator::NoteLinkedTarget(
|
||||
cmStrCat("Target \"", target->GetName(), "\" references target \"",
|
||||
linkedName, "\", which comes from the \"", pkgName,
|
||||
"\" package, but does not belong to the package's "
|
||||
"canonical namespace. This is not allowed."));
|
||||
"canonical namespace (\"",
|
||||
prefix, "\"). This is not allowed."));
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
CMake Error in CMakeLists.txt:
|
||||
CMake Error in CMakeLists\.txt:
|
||||
Target "foo" references target "wrong::lib", which comes from the "broken"
|
||||
package, but does not belong to the package's canonical namespace. This is
|
||||
not allowed.
|
||||
package, but does not belong to the package's canonical namespace
|
||||
\("broken::"\)\. This is not allowed\.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
CMake Error in CMakeLists.txt:
|
||||
CMake Error in CMakeLists\.txt:
|
||||
Target "foo" references target "wrong::lib", which comes from the "broken"
|
||||
package, but does not belong to the package's canonical namespace. This is
|
||||
not allowed.
|
||||
package, but does not belong to the package's canonical namespace
|
||||
\("broken::"\)\. This is not allowed\.
|
||||
|
||||
Reference in New Issue
Block a user