|
|
@@ -428,14 +428,18 @@ bool cmDependsFortran::WriteDependenciesReal(const char* obj,
|
|
|
std::string modFile = mod_dir;
|
|
|
modFile += "/";
|
|
|
modFile += *i;
|
|
|
- modFile = this->LocalGenerator->Convert(
|
|
|
- modFile, cmOutputConverter::HOME_OUTPUT, cmOutputConverter::SHELL);
|
|
|
+ modFile = this->LocalGenerator->ConvertToOutputFormat(
|
|
|
+ this->LocalGenerator->ConvertToRelativePath(
|
|
|
+ this->LocalGenerator->GetBinaryDirectory(), modFile),
|
|
|
+ cmOutputConverter::SHELL);
|
|
|
std::string stampFile = stamp_dir;
|
|
|
stampFile += "/";
|
|
|
stampFile += m;
|
|
|
stampFile += ".mod.stamp";
|
|
|
- stampFile = this->LocalGenerator->Convert(
|
|
|
- stampFile, cmOutputConverter::HOME_OUTPUT, cmOutputConverter::SHELL);
|
|
|
+ stampFile = this->LocalGenerator->ConvertToOutputFormat(
|
|
|
+ this->LocalGenerator->ConvertToRelativePath(
|
|
|
+ this->LocalGenerator->GetBinaryDirectory(), stampFile),
|
|
|
+ cmOutputConverter::SHELL);
|
|
|
makeDepends << "\t$(CMAKE_COMMAND) -E cmake_copy_f90_mod " << modFile
|
|
|
<< " " << stampFile;
|
|
|
cmMakefile* mf = this->LocalGenerator->GetMakefile();
|