From 6018c2799374ddad7d3eb96618dfcca74a915e93 Mon Sep 17 00:00:00 2001 From: Brad King Date: Tue, 14 Mar 2006 09:37:50 -0500 Subject: [PATCH] BUG: Clarified confusing error message. --- Source/cmMakefile.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx index f288e8418..383e1e0b6 100644 --- a/Source/cmMakefile.cxx +++ b/Source/cmMakefile.cxx @@ -757,7 +757,11 @@ void cmMakefile::AddLinkLibraryForTarget(const char *target, } else { - cmSystemTools::Error("Attempt to add link libraries to non-existant target: ", target, " for lib ", lib); + cmOStringStream e; + e << "Attempt to add link library \"" + << lib << "\" to target \"" + << target << "\" which is not built by this project."; + cmSystemTools::Error(e.str().c_str()); } }