BUG: fix build with non-borland compiler
This commit is contained in:
parent
baa7a4022e
commit
0b9521daf7
@ -272,8 +272,10 @@ void cmBorlandMakefileGenerator::OutputMakefile(const char* file)
|
|||||||
std::string ext = i->GetSourceExtension();
|
std::string ext = i->GetSourceExtension();
|
||||||
if (!i->IsAHeaderFileOnly() && (ext!="def" && ext!="rc"))
|
if (!i->IsAHeaderFileOnly() && (ext!="def" && ext!="rc"))
|
||||||
{
|
{
|
||||||
|
std::string sourceName = i->GetSourceName();
|
||||||
|
cmSystemTools::ConvertToWindowsSlashes(sourceName);
|
||||||
fout << " \\\n " <<
|
fout << " \\\n " <<
|
||||||
cmSystemTools::ConvertToWindowsSlashes(i->GetSourceName())
|
sourceName
|
||||||
<< ".obj ";
|
<< ".obj ";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -399,8 +401,10 @@ void cmBorlandMakefileGenerator::OutputMakefile(const char* file)
|
|||||||
{
|
{
|
||||||
fullname = i->GetFullPath();
|
fullname = i->GetFullPath();
|
||||||
cmSystemTools::ReplaceString(fullname, outpath.c_str(), "");
|
cmSystemTools::ReplaceString(fullname, outpath.c_str(), "");
|
||||||
|
std::string sourceName = i->GetSourceName();
|
||||||
|
cmSystemTools::ConvertToWindowsSlashes(sourceName);
|
||||||
fout << ""
|
fout << ""
|
||||||
<< cmSystemTools::ConvertToWindowsSlashes(i->GetSourceName())
|
<< sourceName
|
||||||
<< ".obj : " << fullname << "\n";
|
<< ".obj : " << fullname << "\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user