cmGlobalGenerator: Add method to check if generator is at least VS 10

This commit is contained in:
Brad King
2021-10-20 11:59:44 -04:00
parent 8917b8512f
commit 7f730464be
2 changed files with 4 additions and 0 deletions

View File

@ -444,6 +444,8 @@ public:
virtual bool IsVisualStudio() const { return false; }
virtual bool IsVisualStudioAtLeast10() const { return false; }
virtual bool IsNinja() const { return false; }
/** Return true if we know the exact location of object files.

View File

@ -20,6 +20,8 @@ class cmGlobalVisualStudio10Generator : public cmGlobalVisualStudio8Generator
public:
static std::unique_ptr<cmGlobalGeneratorFactory> NewFactory();
bool IsVisualStudioAtLeast10() const override { return true; }
bool MatchesGeneratorName(const std::string& name) const override;
bool SetSystemName(std::string const& s, cmMakefile* mf) override;