diff options
author | Peter Hill <zed.three@gmail.com> | 2020-05-08 11:25:57 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-05-21 15:46:32 (GMT) |
commit | 3888de23daca814d66a40642d3e369a5c4747131 (patch) | |
tree | 5cd424b87c1a866453f8e7fe27b37ad24931b4e9 /Source/cmNinjaTargetGenerator.h | |
parent | 66c4e87282176328bc2764afd53015dffd42d7f5 (diff) | |
download | CMake-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.h | 2 |
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; |