diff options
author | Brad King <brad.king@kitware.com> | 2019-01-30 19:55:34 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-01-30 19:58:21 (GMT) |
commit | f4f3b6b9af13366b16ce5a3be7af6c2b68c8be09 (patch) | |
tree | dfd2cf00fbc2f95bde96f3ff27edb8531d9b0f65 /Source/cmGlobalNinjaGenerator.h | |
parent | 699cd032128afcda78e12a76b227faa6c1f6a258 (diff) | |
download | CMake-f4f3b6b9af13366b16ce5a3be7af6c2b68c8be09.zip CMake-f4f3b6b9af13366b16ce5a3be7af6c2b68c8be09.tar.gz CMake-f4f3b6b9af13366b16ce5a3be7af6c2b68c8be09.tar.bz2 |
Ninja: Detect when ninja is new enough to support a multi-line depfile
Ninja 1.9 supports the multi-line depfile format generated by the
Intel Compiler for Windows. Teach the global generator to detect
when the version is new enough to support this.
Diffstat (limited to 'Source/cmGlobalNinjaGenerator.h')
-rw-r--r-- | Source/cmGlobalNinjaGenerator.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/cmGlobalNinjaGenerator.h b/Source/cmGlobalNinjaGenerator.h index b3aa88f..c619e67 100644 --- a/Source/cmGlobalNinjaGenerator.h +++ b/Source/cmGlobalNinjaGenerator.h @@ -345,9 +345,14 @@ public: static std::string RequiredNinjaVersionForConsolePool() { return "1.5"; } static std::string RequiredNinjaVersionForImplicitOuts() { return "1.7"; } static std::string RequiredNinjaVersionForManifestRestat() { return "1.8"; } + static std::string RequiredNinjaVersionForMultilineDepfile() + { + return "1.9"; + } bool SupportsConsolePool() const; bool SupportsImplicitOuts() const; bool SupportsManifestRestat() const; + bool SupportsMultilineDepfile() const; std::string NinjaOutputPath(std::string const& path) const; bool HasOutputPathPrefix() const { return !this->OutputPathPrefix.empty(); } @@ -461,6 +466,7 @@ private: bool NinjaSupportsConsolePool; bool NinjaSupportsImplicitOuts; bool NinjaSupportsManifestRestat; + bool NinjaSupportsMultilineDepfile; unsigned long NinjaSupportsDyndeps; private: |