summaryrefslogtreecommitdiffstats
path: root/Source/cmCommonTargetGenerator.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-02-25 13:07:22 (GMT)
committerKitware Robot <kwrobot@kitware.com>2022-02-25 13:07:36 (GMT)
commitd4ad5fcd5d2303c1ac89c699e59a770e201c817b (patch)
treea88346eea86816bbe7361508304ae93d3e8bbdc0 /Source/cmCommonTargetGenerator.h
parentc515ac41ee5a7249b9816d2cceb36cebf828a7f7 (diff)
parent6b4885b58b8204153919d068363f5fe42fef6ec4 (diff)
downloadCMake-d4ad5fcd5d2303c1ac89c699e59a770e201c817b.zip
CMake-d4ad5fcd5d2303c1ac89c699e59a770e201c817b.tar.gz
CMake-d4ad5fcd5d2303c1ac89c699e59a770e201c817b.tar.bz2
Merge topic 'ninja-gfortran-preprocess'
6b4885b58b Ninja: Avoid preprocessing twice with explicit Fortran_PREPROCESS Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7008
Diffstat (limited to 'Source/cmCommonTargetGenerator.h')
-rw-r--r--Source/cmCommonTargetGenerator.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/Source/cmCommonTargetGenerator.h b/Source/cmCommonTargetGenerator.h
index baa36c9..5aba1c6 100644
--- a/Source/cmCommonTargetGenerator.h
+++ b/Source/cmCommonTargetGenerator.h
@@ -46,8 +46,14 @@ protected:
void AppendFortranFormatFlags(std::string& flags,
cmSourceFile const& source);
- void AppendFortranPreprocessFlags(std::string& flags,
- cmSourceFile const& source);
+ enum class PreprocessFlagsRequired
+ {
+ YES,
+ NO
+ };
+ void AppendFortranPreprocessFlags(
+ std::string& flags, cmSourceFile const& source,
+ PreprocessFlagsRequired requires_pp = PreprocessFlagsRequired::YES);
virtual void AddIncludeFlags(std::string& flags, std::string const& lang,
const std::string& config) = 0;