Browse Source

cmGlobalCommonGenerator: Add SupportsDirectConsole

Default to `true` since this is used by Makefile generators.
The Ninja generator already overrides it to use a version check.
NAKAMURA Takumi 4 years ago
parent
commit
1db4d74628
2 changed files with 4 additions and 1 deletions
  1. 3 0
      Source/cmGlobalCommonGenerator.h
  2. 1 1
      Source/cmGlobalNinjaGenerator.h

+ 3 - 0
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; }
 };

+ 1 - 1
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;