summaryrefslogtreecommitdiffstats
path: root/Source/cmNinjaTargetGenerator.h
diff options
context:
space:
mode:
authorPeter Hill <zed.three@gmail.com>2020-05-08 11:25:57 (GMT)
committerBrad King <brad.king@kitware.com>2020-05-21 15:46:32 (GMT)
commit3888de23daca814d66a40642d3e369a5c4747131 (patch)
tree5cd424b87c1a866453f8e7fe27b37ad24931b4e9 /Source/cmNinjaTargetGenerator.h
parent66c4e87282176328bc2764afd53015dffd42d7f5 (diff)
downloadCMake-3888de23daca814d66a40642d3e369a5c4747131.zip
CMake-3888de23daca814d66a40642d3e369a5c4747131.tar.gz
CMake-3888de23daca814d66a40642d3e369a5c4747131.tar.bz2
Ninja: Skip Fortran preprocessing if Fortran_PREPROCESS is OFF
If `Fortran_PREPROCESS` is explicitly turned off for a source file then we know it does not need to be preprocessed. Teach the Ninja generator to skip preprocessing in this case. Otherwise we still must preprocess just in case. Fixes: #18870
Diffstat (limited to 'Source/cmNinjaTargetGenerator.h')
-rw-r--r--Source/cmNinjaTargetGenerator.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/cmNinjaTargetGenerator.h b/Source/cmNinjaTargetGenerator.h
index 8678dc3..2e0a511 100644
--- a/Source/cmNinjaTargetGenerator.h
+++ b/Source/cmNinjaTargetGenerator.h
@@ -70,6 +70,8 @@ protected:
const std::string& config) const;
std::string LanguagePreprocessRule(std::string const& lang,
const std::string& config) const;
+ std::string LanguageDependencyRule(std::string const& lang,
+ const std::string& config) const;
bool NeedExplicitPreprocessing(std::string const& lang) const;
std::string LanguageDyndepRule(std::string const& lang,
const std::string& config) const;