summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefile.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2006-03-14 14:37:50 (GMT)
committerBrad King <brad.king@kitware.com>2006-03-14 14:37:50 (GMT)
commit6018c2799374ddad7d3eb96618dfcca74a915e93 (patch)
treee7336426072de17dc803d1478fe393d6ed67e64b /Source/cmMakefile.cxx
parent1b6912f18b4e6843200447a1cf07f4eb068116d2 (diff)
downloadCMake-6018c2799374ddad7d3eb96618dfcca74a915e93.zip
CMake-6018c2799374ddad7d3eb96618dfcca74a915e93.tar.gz
CMake-6018c2799374ddad7d3eb96618dfcca74a915e93.tar.bz2
BUG: Clarified confusing error message.
Diffstat (limited to 'Source/cmMakefile.cxx')
-rw-r--r--Source/cmMakefile.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx
index f288e84..383e1e0 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());
}
}