diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2001-09-11 17:44:27 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2001-09-11 17:44:27 (GMT) |
commit | 0b9521daf73a4ed42ad184138de577ef678f43c8 (patch) | |
tree | 0a3505ef501c170c93c899ed20ae7518e037258a /Source | |
parent | baa7a4022ead7c77de9a9c4549f9f3cfe6b64158 (diff) | |
download | CMake-0b9521daf73a4ed42ad184138de577ef678f43c8.zip CMake-0b9521daf73a4ed42ad184138de577ef678f43c8.tar.gz CMake-0b9521daf73a4ed42ad184138de577ef678f43c8.tar.bz2 |
BUG: fix build with non-borland compiler
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmBorlandMakefileGenerator.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Source/cmBorlandMakefileGenerator.cpp b/Source/cmBorlandMakefileGenerator.cpp index 76f91cb..b71bc20 100644 --- a/Source/cmBorlandMakefileGenerator.cpp +++ b/Source/cmBorlandMakefileGenerator.cpp @@ -272,8 +272,10 @@ void cmBorlandMakefileGenerator::OutputMakefile(const char* file) std::string ext = i->GetSourceExtension(); if (!i->IsAHeaderFileOnly() && (ext!="def" && ext!="rc")) { + std::string sourceName = i->GetSourceName(); + cmSystemTools::ConvertToWindowsSlashes(sourceName); fout << " \\\n " << - cmSystemTools::ConvertToWindowsSlashes(i->GetSourceName()) + sourceName << ".obj "; } } @@ -399,8 +401,10 @@ void cmBorlandMakefileGenerator::OutputMakefile(const char* file) { fullname = i->GetFullPath(); cmSystemTools::ReplaceString(fullname, outpath.c_str(), ""); + std::string sourceName = i->GetSourceName(); + cmSystemTools::ConvertToWindowsSlashes(sourceName); fout << "" - << cmSystemTools::ConvertToWindowsSlashes(i->GetSourceName()) + << sourceName << ".obj : " << fullname << "\n"; } } |