summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalNinjaGenerator.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-11-10 20:10:05 (GMT)
committerBrad King <brad.king@kitware.com>2020-11-10 20:16:28 (GMT)
commitc5011399c59a1a004d19a36a58420939fd6b8670 (patch)
tree39809d80f45cb54a62a8e1b47b4fea5a48567b98 /Source/cmGlobalNinjaGenerator.h
parent7a04f45722b2cbe51e1586cd84d2c5ad90e759ed (diff)
downloadCMake-c5011399c59a1a004d19a36a58420939fd6b8670.zip
CMake-c5011399c59a1a004d19a36a58420939fd6b8670.tar.gz
CMake-c5011399c59a1a004d19a36a58420939fd6b8670.tar.bz2
Ninja: Avoid cleandead with dyndep bindings for Fortran module dependencies
The Ninja `cleandead` tool does not account for implicit outputs discovered by `dyndep` bindings and can remove Fortran `.mod` files that are still needed. Disable the `cleandead` step when using `dyndep` bindings. Fixes: #21406
Diffstat (limited to 'Source/cmGlobalNinjaGenerator.h')
-rw-r--r--Source/cmGlobalNinjaGenerator.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/cmGlobalNinjaGenerator.h b/Source/cmGlobalNinjaGenerator.h
index 884a711..a0724ac 100644
--- a/Source/cmGlobalNinjaGenerator.h
+++ b/Source/cmGlobalNinjaGenerator.h
@@ -545,6 +545,7 @@ private:
std::string OutputPathPrefix;
std::string TargetAll;
std::string CMakeCacheFile;
+ bool DisableCleandead = false;
struct ByConfig
{