diff options
author | Brad King <brad.king@kitware.com> | 2010-01-04 15:18:44 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2010-01-04 15:18:44 (GMT) |
commit | cbfbb86b581643db8c1317b07d64743bd1c8a100 (patch) | |
tree | 39ce0b910bbd62458717263035e55d6cc53a146e /Source/cmDependsFortran.cxx | |
parent | 40641e3cbaa0635616c870f987b0ef441d88da8c (diff) | |
download | CMake-cbfbb86b581643db8c1317b07d64743bd1c8a100.zip CMake-cbfbb86b581643db8c1317b07d64743bd1c8a100.tar.gz CMake-cbfbb86b581643db8c1317b07d64743bd1c8a100.tar.bz2 |
Fix escapes in Fortran depend.make entries
Makefile dependencies must be escaped using cmLocalGenerator::Convert
with the cmLocalGenerator::MAKEFILE option. This fixes Fortran module
dependencies with spaces in the path. We test the fix by adding a space
to one of the module paths in the Fortran test.
Diffstat (limited to 'Source/cmDependsFortran.cxx')
-rw-r--r-- | Source/cmDependsFortran.cxx | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/Source/cmDependsFortran.cxx b/Source/cmDependsFortran.cxx index 961d291..9e4726c 100644 --- a/Source/cmDependsFortran.cxx +++ b/Source/cmDependsFortran.cxx @@ -442,9 +442,11 @@ cmDependsFortran for(std::set<cmStdString>::const_iterator i = info.Includes.begin(); i != info.Includes.end(); ++i) { - makeDepends << obj << ": " - << cmSystemTools::ConvertToOutputPath(i->c_str()).c_str() - << std::endl; + makeDepends << obj << ": " << + this->LocalGenerator->Convert(i->c_str(), + cmLocalGenerator::HOME_OUTPUT, + cmLocalGenerator::MAKEFILE) + << std::endl; internalDepends << " " << i->c_str() << std::endl; } makeDepends << std::endl; @@ -491,7 +493,7 @@ cmDependsFortran std::string stampFile = this->LocalGenerator->Convert(required->second.c_str(), cmLocalGenerator::HOME_OUTPUT, - cmLocalGenerator::SHELL); + cmLocalGenerator::MAKEFILE); makeDepends << obj << ": " << stampFile << "\n"; } else @@ -504,7 +506,7 @@ cmDependsFortran module = this->LocalGenerator->Convert(module.c_str(), cmLocalGenerator::HOME_OUTPUT, - cmLocalGenerator::SHELL); + cmLocalGenerator::MAKEFILE); makeDepends << obj << ": " << module << "\n"; } } |