Browse Source

Ninja: encode LINK_FLAGS to handle bash variables

Bug 13560
Peter Kümmel 13 years ago
parent
commit
12ab1354fc
1 changed files with 3 additions and 0 deletions
  1. 3 0
      Source/cmNinjaNormalTargetGenerator.cxx

+ 3 - 0
Source/cmNinjaNormalTargetGenerator.cxx

@@ -439,6 +439,9 @@ void cmNinjaNormalTargetGenerator::WriteLinkStatement()
                                             this->GetGeneratorTarget());
 
   this->AddModuleDefinitionFlag(vars["LINK_FLAGS"]);
+  vars["LINK_FLAGS"] = cmGlobalNinjaGenerator
+                        ::EncodeLiteral(vars["LINK_FLAGS"]);
+
   vars["LINK_PATH"] = frameworkPath + linkPath;
 
   // Compute architecture specific link flags.  Yes, these go into a different