浏览代码

Merge topic 'add-link-search-static-properties-defaults'

9e21b01a Revert LINK_SEARCH_{START,END}_STATIC behavior change
Brad King 10 年之前
父节点
当前提交
d833df1228
共有 1 个文件被更改,包括 3 次插入5 次删除
  1. 3 5
      Source/cmComputeLinkInformation.cxx

+ 3 - 5
Source/cmComputeLinkInformation.cxx

@@ -522,10 +522,9 @@ bool cmComputeLinkInformation::Compute()
   // libraries are found.
   // libraries are found.
   const char* lss =
   const char* lss =
       this->Target->Target->GetProperty("LINK_SEARCH_END_STATIC");
       this->Target->Target->GetProperty("LINK_SEARCH_END_STATIC");
-  if(lss)
+  if(cmSystemTools::IsOn(lss))
     {
     {
-    this->SetCurrentLinkType(
-      cmSystemTools::IsOn(lss) ? LinkStatic : LinkShared);
+    this->SetCurrentLinkType(LinkStatic);
     }
     }
   else
   else
     {
     {
@@ -863,8 +862,7 @@ void cmComputeLinkInformation::ComputeLinkTypeInfo()
   const char* lss =
   const char* lss =
       this->Target->Target->GetProperty("LINK_SEARCH_START_STATIC");
       this->Target->Target->GetProperty("LINK_SEARCH_START_STATIC");
   this->StartLinkType = cmSystemTools::IsOn(lss)? LinkStatic : LinkShared;
   this->StartLinkType = cmSystemTools::IsOn(lss)? LinkStatic : LinkShared;
-  this->CurrentLinkType = LinkUnknown;
-  this->SetCurrentLinkType(this->StartLinkType);
+  this->CurrentLinkType = this->StartLinkType;
 }
 }
 
 
 //----------------------------------------------------------------------------
 //----------------------------------------------------------------------------