瀏覽代碼

cmTarget: Remove dead code.

Whitelisting of properties already ensures that the LOCATION
property will not be read from an INTERFACE_LIBRARY.
Stephen Kelly 12 年之前
父節點
當前提交
7fc6e3d607
共有 1 個文件被更改,包括 0 次插入1 次删除
  1. 0 1
      Source/cmTarget.cxx

+ 0 - 1
Source/cmTarget.cxx

@@ -2688,7 +2688,6 @@ const char *cmTarget::GetProperty(const char* prop,
      this->GetType() == cmTarget::STATIC_LIBRARY ||
      this->GetType() == cmTarget::STATIC_LIBRARY ||
      this->GetType() == cmTarget::SHARED_LIBRARY ||
      this->GetType() == cmTarget::SHARED_LIBRARY ||
      this->GetType() == cmTarget::MODULE_LIBRARY ||
      this->GetType() == cmTarget::MODULE_LIBRARY ||
-     this->GetType() == cmTarget::INTERFACE_LIBRARY ||
      this->GetType() == cmTarget::UNKNOWN_LIBRARY)
      this->GetType() == cmTarget::UNKNOWN_LIBRARY)
     {
     {
     if(strcmp(prop,"LOCATION") == 0)
     if(strcmp(prop,"LOCATION") == 0)