浏览代码

Fix for bug #8807, add support for CMAKE_EXE_LINKER_FLAGS_(config) to Xcode generator.

Bill Hoffman 16 年之前
父节点
当前提交
324f51cfc8
共有 1 个文件被更改,包括 9 次插入0 次删除
  1. 9 0
      Source/cmGlobalXCodeGenerator.cxx

+ 9 - 0
Source/cmGlobalXCodeGenerator.cxx

@@ -1509,6 +1509,15 @@ void cmGlobalXCodeGenerator::CreateBuildSettings(cmTarget& target,
     {
     extraLinkOptions = 
       this->CurrentMakefile->GetRequiredDefinition("CMAKE_EXE_LINKER_FLAGS");
+    std::string var = "CMAKE_EXE_LINKER_FLAGS_";
+    var += cmSystemTools::UpperCase(configName);
+    std::string val =  
+      this->CurrentMakefile->GetSafeDefinition(var.c_str());
+    if(val.size())
+      {
+      extraLinkOptions += " ";
+      extraLinkOptions += val;
+      }
     }
   if(target.GetType() == cmTarget::SHARED_LIBRARY)
     {