diff options
author | Brad King <brad.king@kitware.com> | 2021-10-20 15:59:44 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-10-20 17:00:25 (GMT) |
commit | 7f730464be485862ba89c85248306c893117a595 (patch) | |
tree | 93d170c65aea4b7a1ce580f61722a40bd48b0a05 /Source | |
parent | 8917b8512f20147b22ac8a7bf78245ab0162acaf (diff) | |
download | CMake-7f730464be485862ba89c85248306c893117a595.zip CMake-7f730464be485862ba89c85248306c893117a595.tar.gz CMake-7f730464be485862ba89c85248306c893117a595.tar.bz2 |
cmGlobalGenerator: Add method to check if generator is at least VS 10
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmGlobalGenerator.h | 2 | ||||
-rw-r--r-- | Source/cmGlobalVisualStudio10Generator.h | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmGlobalGenerator.h b/Source/cmGlobalGenerator.h index 23c5700..074da4e 100644 --- a/Source/cmGlobalGenerator.h +++ b/Source/cmGlobalGenerator.h @@ -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. diff --git a/Source/cmGlobalVisualStudio10Generator.h b/Source/cmGlobalVisualStudio10Generator.h index 6c8e5f7..a5ee284 100644 --- a/Source/cmGlobalVisualStudio10Generator.h +++ b/Source/cmGlobalVisualStudio10Generator.h @@ -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; |