summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefileTargetGenerator.cxx
diff options
context:
space:
mode:
authorTobias Hunger <tobias.hunger@qt.io>2016-06-10 14:58:36 (GMT)
committerBrad King <brad.king@kitware.com>2016-06-17 18:22:29 (GMT)
commit49f10f0d24420f7d96c5153ba64a16b3f43c4736 (patch)
treebd6ae93de51dc222b30bb127bb5d336dc157df90 /Source/cmMakefileTargetGenerator.cxx
parent0392f72bef5f1394c2dba3740f2a701fe1a98f0d (diff)
downloadCMake-49f10f0d24420f7d96c5153ba64a16b3f43c4736.zip
CMake-49f10f0d24420f7d96c5153ba64a16b3f43c4736.tar.gz
CMake-49f10f0d24420f7d96c5153ba64a16b3f43c4736.tar.bz2
cmGeneratorTarget: Adopt Fortran module directory generation
Move code to create/get the fortran module directory from the cmCommonTargetGenerator to cmGeneratorTarget. Rename the ComputeFortranModuleDirectory method to CreateFortranModuleDirectory as this method *creates* the directory if it is missing.
Diffstat (limited to 'Source/cmMakefileTargetGenerator.cxx')
-rw-r--r--Source/cmMakefileTargetGenerator.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmMakefileTargetGenerator.cxx b/Source/cmMakefileTargetGenerator.cxx
index daf05d3..8b341a1 100644
--- a/Source/cmMakefileTargetGenerator.cxx
+++ b/Source/cmMakefileTargetGenerator.cxx
@@ -962,7 +962,7 @@ void cmMakefileTargetGenerator::WriteTargetDependRules()
<< "\n"
<< "# Fortran module output directory.\n"
<< "set(CMAKE_Fortran_TARGET_MODULE_DIR \""
- << this->GetFortranModuleDirectory() << "\")\n";
+ << this->GeneratorTarget->GetFortranModuleDirectory() << "\")\n";
/* clang-format on */
// and now write the rule to use it