Browse Source

cmLocalGenerator: Move stringstream to where it is used

Stephen Kelly 9 years ago
parent
commit
cbca80f351
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Source/cmLocalGenerator.cxx

+ 1 - 1
Source/cmLocalGenerator.cxx

@@ -1406,7 +1406,6 @@ void cmLocalGenerator::OutputLinkLibraries(
   OutputFormat shellFormat =
     (forResponseFile) ? RESPONSE : ((useWatcomQuote) ? WATCOMQUOTE : SHELL);
   bool escapeAllowMakeVars = !forResponseFile;
-  std::ostringstream fout;
 
   cmComputeLinkInformation& cli = *pcli;
 
@@ -1498,6 +1497,7 @@ void cmLocalGenerator::OutputLinkLibraries(
     }
   }
 
+  std::ostringstream fout;
   fout << rpath;
 
   // Write the library flags to the build rule.