浏览代码

BUG: Clarified confusing error message.

Brad King 19 年之前
父节点
当前提交
6018c27993
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. 5 1
      Source/cmMakefile.cxx

+ 5 - 1
Source/cmMakefile.cxx

@@ -757,7 +757,11 @@ void cmMakefile::AddLinkLibraryForTarget(const char *target,
     }
     }
   else
   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());
     }
     }
 }
 }