diff options
author | Brad King <brad.king@kitware.com> | 2018-04-18 17:56:01 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2018-04-20 14:56:54 (GMT) |
commit | 62538b2c4c70eeef52886092e24c97a9a7699a00 (patch) | |
tree | d9e7463225c078105c2879d283191ac7fb14f57d /Source/cmGlobalNinjaGenerator.cxx | |
parent | fe0082875aeecead23b2351629abca4990dfba43 (diff) | |
download | CMake-62538b2c4c70eeef52886092e24c97a9a7699a00.zip CMake-62538b2c4c70eeef52886092e24c97a9a7699a00.tar.gz CMake-62538b2c4c70eeef52886092e24c97a9a7699a00.tar.bz2 |
Fortran: Refactor to treat .mod extension as part of module name
When tracking module names internally, include the `.mod` extension.
This will later be useful to distinguish them from `.smod` extensions
for submodules.
Diffstat (limited to 'Source/cmGlobalNinjaGenerator.cxx')
-rw-r--r-- | Source/cmGlobalNinjaGenerator.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmGlobalNinjaGenerator.cxx b/Source/cmGlobalNinjaGenerator.cxx index 599e27c..2a8576f 100644 --- a/Source/cmGlobalNinjaGenerator.cxx +++ b/Source/cmGlobalNinjaGenerator.cxx @@ -1812,7 +1812,7 @@ bool cmGlobalNinjaGenerator::WriteDyndepFile( Json::Value tm = Json::objectValue; for (cmFortranObjectInfo const& object : objects) { for (std::string const& p : object.Provides) { - std::string const mod = module_dir + p + ".mod"; + std::string const mod = module_dir + p; mod_files[p] = mod; tm[p] = mod; } |