diff options
author | Peter Hill <zed.three@gmail.com> | 2020-04-24 10:52:41 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-05-21 15:44:14 (GMT) |
commit | b0a6161190f8a85a5771fc96d5d745b0be2b07e5 (patch) | |
tree | d5fc83aa6c54f699239e4c5739eb4218e83dc720 /Source/cmOutputConverter.cxx | |
parent | d3d53eefeeea5d3cf853f4591e318f3e4998bec0 (diff) | |
download | CMake-b0a6161190f8a85a5771fc96d5d745b0be2b07e5.zip CMake-b0a6161190f8a85a5771fc96d5d745b0be2b07e5.tar.gz CMake-b0a6161190f8a85a5771fc96d5d745b0be2b07e5.tar.bz2 |
Fortran: Add Fortran_PREPROCESS property
Issue: #18870
Diffstat (limited to 'Source/cmOutputConverter.cxx')
-rw-r--r-- | Source/cmOutputConverter.cxx | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Source/cmOutputConverter.cxx b/Source/cmOutputConverter.cxx index dc324cc..359e9f5 100644 --- a/Source/cmOutputConverter.cxx +++ b/Source/cmOutputConverter.cxx @@ -170,6 +170,17 @@ cmOutputConverter::FortranFormat cmOutputConverter::GetFortranFormat( return format; } +cmOutputConverter::FortranPreprocess cmOutputConverter::GetFortranPreprocess( + cm::string_view value) +{ + if (value.empty()) { + return FortranPreprocess::Unset; + } + + return cmIsOn(value) ? FortranPreprocess::Needed + : FortranPreprocess::NotNeeded; +} + void cmOutputConverter::SetLinkScriptShell(bool linkScriptShell) { this->LinkScriptShell = linkScriptShell; |