diff options
author | Brad King <brad.king@kitware.com> | 2015-07-29 15:49:00 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-07-29 17:18:46 (GMT) |
commit | 7371d8f3b49c020a14f6324ba5264d17c7dbbaee (patch) | |
tree | fdb4e8bb7008cb50fa52246f503229d1838a5b85 /Source/cmMakefileTargetGenerator.cxx | |
parent | 613bc08ac15b74a395ef0eca7668f7192b438204 (diff) | |
download | CMake-7371d8f3b49c020a14f6324ba5264d17c7dbbaee.zip CMake-7371d8f3b49c020a14f6324ba5264d17c7dbbaee.tar.gz CMake-7371d8f3b49c020a14f6324ba5264d17c7dbbaee.tar.bz2 |
cmCommonTargetGenerator: Return string from GetFortranModuleDirectory
Diffstat (limited to 'Source/cmMakefileTargetGenerator.cxx')
-rw-r--r-- | Source/cmMakefileTargetGenerator.cxx | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/Source/cmMakefileTargetGenerator.cxx b/Source/cmMakefileTargetGenerator.cxx index 57ab2ca..5a2333d 100644 --- a/Source/cmMakefileTargetGenerator.cxx +++ b/Source/cmMakefileTargetGenerator.cxx @@ -1069,14 +1069,11 @@ void cmMakefileTargetGenerator::WriteTargetDependRules() << " )\n"; } - // Check for a target-specific module output directory. - if(const char* mdir = this->GetFortranModuleDirectory()) - { - *this->InfoFileStream - << "\n" - << "# Fortran module output directory.\n" - << "set(CMAKE_Fortran_TARGET_MODULE_DIR \"" << mdir << "\")\n"; - } + *this->InfoFileStream + << "\n" + << "# Fortran module output directory.\n" + << "set(CMAKE_Fortran_TARGET_MODULE_DIR \"" + << this->GetFortranModuleDirectory() << "\")\n"; // and now write the rule to use it std::vector<std::string> depends; |