| 83 | } |
| 84 | |
| 85 | void cmCommonTargetGenerator::AppendFortranPreprocessFlags( |
| 86 | std::string& flags, cmSourceFile const& source, |
| 87 | PreprocessFlagsRequired requires_pp) |
| 88 | { |
| 89 | std::string const srcpp = source.GetSafeProperty("Fortran_PREPROCESS"); |
| 90 | cmOutputConverter::FortranPreprocess preprocess = |
| 91 | cmOutputConverter::GetFortranPreprocess(srcpp); |
| 92 | if (preprocess == cmOutputConverter::FortranPreprocess::Unset) { |
| 93 | std::string const& tgtpp = |
| 94 | this->GeneratorTarget->GetSafeProperty("Fortran_PREPROCESS"); |
| 95 | preprocess = cmOutputConverter::GetFortranPreprocess(tgtpp); |
| 96 | } |
| 97 | char const* var = nullptr; |
| 98 | switch (preprocess) { |
| 99 | case cmOutputConverter::FortranPreprocess::Needed: |
| 100 | if (requires_pp == PreprocessFlagsRequired::YES) { |
| 101 | var = "CMAKE_Fortran_COMPILE_OPTIONS_PREPROCESS_ON"; |
| 102 | } |
| 103 | break; |
| 104 | case cmOutputConverter::FortranPreprocess::NotNeeded: |
| 105 | var = "CMAKE_Fortran_COMPILE_OPTIONS_PREPROCESS_OFF"; |
| 106 | break; |
| 107 | default: |
| 108 | break; |
| 109 | } |
| 110 | if (var) { |
| 111 | this->LocalCommonGenerator->AppendCompileOptions( |
| 112 | flags, this->Makefile->GetSafeDefinition(var)); |
| 113 | } |
| 114 | } |
| 115 | |
| 116 | std::string cmCommonTargetGenerator::GetFlags(std::string const& l, |
| 117 | std::string const& config, |
no test coverage detected