Browse Source

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

Bill Hoffman 16 years ago
parent
commit
324f51cfc8
1 changed files with 9 additions and 0 deletions
  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)
     {