handle long commands

This commit is contained in:
Bill Hoffman 2002-09-24 09:50:58 -04:00
parent 94f1e8f5c5
commit dd0dc9e6bd
1 changed files with 2 additions and 2 deletions

View File

@ -307,7 +307,7 @@ void cmLocalBorlandMakefileGenerator::OutputExecutableRule(std::ostream& fout,
depend += this->CreateMakeVariable(name, "_SRC_OBJS") + ") $(" + depend += this->CreateMakeVariable(name, "_SRC_OBJS") + ") $(" +
this->CreateMakeVariable(name, "_DEPEND_LIBS") + ")"; this->CreateMakeVariable(name, "_DEPEND_LIBS") + ")";
std::string command = std::string command =
"$(CMAKE_CXX_COMPILER) "; "$(CMAKE_CXX_COMPILER) @&&|\n";
command += " $(CMAKE_LINKER_FLAGS) -e" + target; command += " $(CMAKE_LINKER_FLAGS) -e" + target;
if(cmSystemTools::IsOn(m_Makefile->GetDefinition("BUILD_SHARED_LIBS"))) if(cmSystemTools::IsOn(m_Makefile->GetDefinition("BUILD_SHARED_LIBS")))
{ {
@ -325,7 +325,7 @@ void cmLocalBorlandMakefileGenerator::OutputExecutableRule(std::ostream& fout,
this->OutputLinkLibraries(linklibs, 0, t); this->OutputLinkLibraries(linklibs, 0, t);
command += linklibs.str(); command += linklibs.str();
command += " $(" + this->CreateMakeVariable(name, "_SRC_OBJS") + ")"; command += " $(" + this->CreateMakeVariable(name, "_SRC_OBJS") + ")";
command += "\n|";
std::string comment = "rule to build executable: "; std::string comment = "rule to build executable: ";
comment += name; comment += name;
std::string customCommands = this->CreateTargetRules(t, name); std::string customCommands = this->CreateTargetRules(t, name);