diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2021-06-29 02:27:07 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-06-29 14:37:16 (GMT) |
commit | 1db4d7462808e9af5e2a6de029943d51a521f52c (patch) | |
tree | 2a56f6324621e5804ad09c25d1f1fa6fca9261b1 | |
parent | 61a737b088717201c331b83bd8794149e5d112e5 (diff) | |
download | CMake-1db4d7462808e9af5e2a6de029943d51a521f52c.zip CMake-1db4d7462808e9af5e2a6de029943d51a521f52c.tar.gz CMake-1db4d7462808e9af5e2a6de029943d51a521f52c.tar.bz2 |
cmGlobalCommonGenerator: Add SupportsDirectConsole
Default to `true` since this is used by Makefile generators.
The Ninja generator already overrides it to use a version check.
-rw-r--r-- | Source/cmGlobalCommonGenerator.h | 3 | ||||
-rw-r--r-- | Source/cmGlobalNinjaGenerator.h | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/Source/cmGlobalCommonGenerator.h b/Source/cmGlobalCommonGenerator.h index 2aa9d27..21cfd11 100644 --- a/Source/cmGlobalCommonGenerator.h +++ b/Source/cmGlobalCommonGenerator.h @@ -42,4 +42,7 @@ public: std::map<std::string, DirectoryTarget> ComputeDirectoryTargets() const; bool IsExcludedFromAllInConfig(const DirectoryTarget::Target& t, const std::string& config); + +protected: + virtual bool SupportsDirectConsole() const { return true; } }; diff --git a/Source/cmGlobalNinjaGenerator.h b/Source/cmGlobalNinjaGenerator.h index 9aa1152..ce47122 100644 --- a/Source/cmGlobalNinjaGenerator.h +++ b/Source/cmGlobalNinjaGenerator.h @@ -406,7 +406,7 @@ public: return "1.10.2"; } static std::string RequiredNinjaVersionForCodePage() { return "1.11"; } - bool SupportsDirectConsole() const; + bool SupportsDirectConsole() const override; bool SupportsImplicitOuts() const; bool SupportsManifestRestat() const; bool SupportsMultilineDepfile() const; |