summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalNinjaGenerator.h
diff options
context:
space:
mode:
authorJames Johnston <johnstonj.public@codenest.com>2015-08-08 20:04:08 (GMT)
committerJames Johnston <johnstonj.public@codenest.com>2015-08-09 17:31:24 (GMT)
commitc5ac2b9df36a57d3b88e80a2d1c382d753faf2da (patch)
tree134214bb83e7335b6382a7a5dde11f1e6a8064a1 /Source/cmGlobalNinjaGenerator.h
parent101ba25e6a2c177f9f3a81f3879a171256806756 (diff)
downloadCMake-c5ac2b9df36a57d3b88e80a2d1c382d753faf2da.zip
CMake-c5ac2b9df36a57d3b88e80a2d1c382d753faf2da.tar.gz
CMake-c5ac2b9df36a57d3b88e80a2d1c382d753faf2da.tar.bz2
Ninja: Centralized required Ninja version numbers and comparisons.
Diffstat (limited to 'Source/cmGlobalNinjaGenerator.h')
-rw-r--r--Source/cmGlobalNinjaGenerator.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/cmGlobalNinjaGenerator.h b/Source/cmGlobalNinjaGenerator.h
index 2a749c1..a1df1c2 100644
--- a/Source/cmGlobalNinjaGenerator.h
+++ b/Source/cmGlobalNinjaGenerator.h
@@ -299,8 +299,10 @@ public:
virtual void ComputeTargetObjectDirectory(cmGeneratorTarget* gt) const;
- std::string ninjaVersion() const;
-
+ std::string CurrentNinjaVersion() const;
+ // Ninja generator uses 'deps' and 'msvc_deps_prefix' introduced in 1.3
+ static std::string RequiredNinjaVersion() { return "1.3"; }
+ static std::string RequiredNinjaVersionForConsolePool() { return "1.5"; }
bool SupportsConsolePool() const;
protected: