浏览代码

cmComputeLinkInformation: Do not mark interface library as a path

The empty string we add as a link item for an INTERFACE_LIBRARY target
is not a path, so do not mark it as such.  The generators currently
tolerate it either way, but only by accident.
Brad King 9 年之前
父节点
当前提交
9cb263d772
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Source/cmComputeLinkInformation.cxx

+ 1 - 1
Source/cmComputeLinkInformation.cxx

@@ -655,7 +655,7 @@ void cmComputeLinkInformation::AddItem(std::string const& item,
       // Add the interface library as an item so it can be considered as part
       // of COMPATIBLE_INTERFACE_ enforcement.  The generators will ignore
       // this for the actual link line.
-      this->Items.push_back(Item(std::string(), true, tgt));
+      this->Items.push_back(Item(std::string(), false, tgt));
       }
     else
       {