Browse Source

BUG: fix build problem on gcc

Bill Hoffman 20 years ago
parent
commit
1c289b52f4
1 changed files with 3 additions and 2 deletions
  1. 3 2
      Source/cmGlobalUnixMakefileGenerator3.cxx

+ 3 - 2
Source/cmGlobalUnixMakefileGenerator3.cxx

@@ -894,8 +894,9 @@ void cmGlobalUnixMakefileGenerator3::WriteHelpRule
             }
             }
           }
           }
         }
         }
-      std::map<cmStdString,std::vector<cmTarget *> >& objs = lg->GetLocalObjectFiles();
-      for(std::map<cmStdString,std::vector<cmTarget *> >::iterator o =
+      std::map<cmStdString,std::vector<cmTarget *> > const& objs =
+        lg->GetLocalObjectFiles();
+      for(std::map<cmStdString,std::vector<cmTarget *> >::const_iterator o =
             objs.begin(); o != objs.end(); ++o)
             objs.begin(); o != objs.end(); ++o)
         {
         {
          path = "... ";
          path = "... ";