diff --git a/Source/cmLocalVisualStudio7Generator.cxx b/Source/cmLocalVisualStudio7Generator.cxx index 12ca528fc7..e776d86350 100644 --- a/Source/cmLocalVisualStudio7Generator.cxx +++ b/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); } diff --git a/Source/cmLocalVisualStudio7Generator.h b/Source/cmLocalVisualStudio7Generator.h index ce1156fab2..5be0a2b079 100644 --- a/Source/cmLocalVisualStudio7Generator.h +++ b/Source/cmLocalVisualStudio7Generator.h @@ -153,8 +153,8 @@ private: friend class EventWriter; - bool FortranProject; - bool WindowsCEProject; + bool FortranProject = false; + bool WindowsCEProject = false; std::unique_ptr Internal; std::map>