瀏覽代碼

Merge topic 'fix-LINK_LIBRARIES-population'

d7f1520 Don't wrap all targets in LINK_LIBRARIES in a TARGET_NAME genex.
Brad King 12 年之前
父節點
當前提交
7a336d2e31
共有 1 個文件被更改,包括 3 次插入2 次删除
  1. 3 2
      Source/cmTarget.cxx

+ 3 - 2
Source/cmTarget.cxx

@@ -2279,8 +2279,9 @@ void cmTarget::AddLinkLibrary(cmMakefile& mf,
   cmTarget *tgt = this->Makefile->FindTargetToUse(lib);
   const bool isNonImportedTarget = tgt && !tgt->IsImported();
 
-  std::string libName = isNonImportedTarget ? targetNameGenex(lib)
-                                          : std::string(lib);
+  const std::string libName = (isNonImportedTarget && llt != GENERAL)
+                                                        ? targetNameGenex(lib)
+                                                        : std::string(lib);
   this->AppendProperty("LINK_LIBRARIES",
                        this->GetDebugGeneratorExpressions(libName,
                                                           llt).c_str());