diff options
author | Brad King <brad.king@kitware.com> | 2019-02-13 14:08:34 -0500 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-02-14 10:23:02 -0500 |
commit | d80ecba5c27ec249dc85c3a3559db822ef320d05 (patch) | |
tree | 1484c5669fbc156caf8dcd68f624759267428da8 /Source/cmFortranParserImpl.cxx | |
parent | 72057d9c1582f4b6dec66cd0675860c4c335636e (diff) | |
download | cmake-d80ecba5c27ec249dc85c3a3559db822ef320d05.tar.gz |
Fortran: Fix submodule file names across compilers
The naming convention for submodule files varies across compilers. Add
a table to the compiler information modules and thread the information
through to the Fortran module dependency parser. Fill out the table for
compiler ids known to support Fortran submodules.
Fixes: #18746
Diffstat (limited to 'Source/cmFortranParserImpl.cxx')
-rw-r--r-- | Source/cmFortranParserImpl.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmFortranParserImpl.cxx b/Source/cmFortranParserImpl.cxx index 8787206f37..18e3c107d5 100644 --- a/Source/cmFortranParserImpl.cxx +++ b/Source/cmFortranParserImpl.cxx @@ -79,7 +79,7 @@ std::string cmFortranParser_s::ModName(std::string const& mod_name) const std::string cmFortranParser_s::SModName(std::string const& mod_name, std::string const& sub_name) const { - return mod_name + "@" + sub_name + ".smod"; + return mod_name + this->Compiler.SModSep + sub_name + this->Compiler.SModExt; } bool cmFortranParser_FilePush(cmFortranParser* parser, const char* fname) |