From b0a6161190f8a85a5771fc96d5d745b0be2b07e5 Mon Sep 17 00:00:00 2001 From: Peter Hill Date: Fri, 24 Apr 2020 11:52:41 +0100 Subject: Fortran: Add Fortran_PREPROCESS property Issue: #18870 --- Source/cmOutputConverter.cxx | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'Source/cmOutputConverter.cxx') diff --git a/Source/cmOutputConverter.cxx b/Source/cmOutputConverter.cxx index dc324ccb58..359e9f5a99 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; -- cgit v1.2.1