summaryrefslogtreecommitdiffstats
path: root/Source/cmDependsFortran.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2007-12-19 19:28:46 (GMT)
committerBrad King <brad.king@kitware.com>2007-12-19 19:28:46 (GMT)
commit891256546b5bdb8ad7f9d29014b972c93abd39bf (patch)
treedd19fa07cd8226b7a6d842263d486d34f469228c /Source/cmDependsFortran.cxx
parent9ccba7c391fef39697bfa1fb15d0ef887464a45b (diff)
downloadCMake-891256546b5bdb8ad7f9d29014b972c93abd39bf.zip
CMake-891256546b5bdb8ad7f9d29014b972c93abd39bf.tar.gz
CMake-891256546b5bdb8ad7f9d29014b972c93abd39bf.tar.bz2
ENH: Pass target directory to cmDependsFortran scanning instances.
Diffstat (limited to 'Source/cmDependsFortran.cxx')
-rw-r--r--Source/cmDependsFortran.cxx13
1 files changed, 9 insertions, 4 deletions
diff --git a/Source/cmDependsFortran.cxx b/Source/cmDependsFortran.cxx
index 61f5e23..d120547 100644
--- a/Source/cmDependsFortran.cxx
+++ b/Source/cmDependsFortran.cxx
@@ -90,8 +90,9 @@ cmDependsFortran::cmDependsFortran():
}
//----------------------------------------------------------------------------
-cmDependsFortran::cmDependsFortran(std::vector<std::string> const& includes):
- IncludePath(&includes)
+cmDependsFortran::cmDependsFortran(std::vector<std::string> const& includes,
+ std::string const& targetDirectory):
+ IncludePath(&includes), TargetDirectory(targetDirectory)
{
}
@@ -267,8 +268,12 @@ bool cmDependsFortran::WriteDependencies(const char *src, const char *obj,
// Make sure the module timestamp rule is evaluated by the time
// the target finishes building.
- makeDepends << cmSystemTools::GetFilenamePath(obj) << "/build: "
- << obj << ".provides.build\n";
+ std::string driver = this->TargetDirectory;
+ driver += "/build";
+ driver = this->LocalGenerator->Convert(driver.c_str(),
+ cmLocalGenerator::HOME_OUTPUT,
+ cmLocalGenerator::MAKEFILE);
+ makeDepends << driver << ": " << obj << ".provides.build\n";
}
/*