Merge branch 'backport-4.1-improve-cps-export-namespace-error'

This commit is contained in:
Brad King
2025-10-27 15:56:11 -04:00
3 changed files with 6 additions and 5 deletions

View File

@@ -330,7 +330,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;
}

View File

@@ -1,4 +1,4 @@
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\.

View File

@@ -1,4 +1,4 @@
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\.