summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalNinjaGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2018-04-18 17:56:01 (GMT)
committerBrad King <brad.king@kitware.com>2018-04-20 14:56:54 (GMT)
commit62538b2c4c70eeef52886092e24c97a9a7699a00 (patch)
treed9e7463225c078105c2879d283191ac7fb14f57d /Source/cmGlobalNinjaGenerator.cxx
parentfe0082875aeecead23b2351629abca4990dfba43 (diff)
downloadCMake-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.cxx2
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;
}