mirror of
https://github.com/yaobinwen/CMake.git
synced 2026-01-28 14:03:25 +00:00
cmGlobalGenerator: Add method to check if generator is at least VS 10
This commit is contained in:
@ -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.
|
||||
|
||||
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user