Browse Source

cmLocalVisualStudio7Generator: Reset per-target members after every target

Brad King 1 năm trước cách đây
mục cha
commit
acc5ea7390

+ 2 - 0
Source/cmLocalVisualStudio7Generator.cxx

@@ -224,6 +224,8 @@ void cmLocalVisualStudio7Generator::GenerateTarget(cmGeneratorTarget* target)
     this->GlobalGenerator->FileReplacedDuringGenerate(fname);
   }
 
+  this->WindowsCEProject = false;
+  this->FortranProject = false;
   gg->SetVersion(realVersion);
 }
 

+ 2 - 2
Source/cmLocalVisualStudio7Generator.h

@@ -153,8 +153,8 @@ private:
 
   friend class EventWriter;
 
-  bool FortranProject;
-  bool WindowsCEProject;
+  bool FortranProject = false;
+  bool WindowsCEProject = false;
   std::unique_ptr<cmLocalVisualStudio7GeneratorInternals> Internal;
 
   std::map<cmGeneratorTarget const*, std::set<cmSourceFile const*>>