summaryrefslogtreecommitdiffstats
path: root/Source/cmNMakeMakefileGenerator.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2001-11-15 23:18:45 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2001-11-15 23:18:45 (GMT)
commit54f5d7994c6894eea0f3f89045f45dceca0243bb (patch)
tree37a651a9af419748402292f5f467f31d43ae9ce8 /Source/cmNMakeMakefileGenerator.cxx
parentd2b84627dee26ede5dc4116e4c3bcede6847d789 (diff)
downloadCMake-54f5d7994c6894eea0f3f89045f45dceca0243bb.zip
CMake-54f5d7994c6894eea0f3f89045f45dceca0243bb.tar.gz
CMake-54f5d7994c6894eea0f3f89045f45dceca0243bb.tar.bz2
ENH: use crazy temp files for long command lines
Diffstat (limited to 'Source/cmNMakeMakefileGenerator.cxx')
-rw-r--r--Source/cmNMakeMakefileGenerator.cxx8
1 files changed, 5 insertions, 3 deletions
diff --git a/Source/cmNMakeMakefileGenerator.cxx b/Source/cmNMakeMakefileGenerator.cxx
index 38efd2c..3adb4af 100644
--- a/Source/cmNMakeMakefileGenerator.cxx
+++ b/Source/cmNMakeMakefileGenerator.cxx
@@ -304,14 +304,15 @@ void cmNMakeMakefileGenerator::OutputSharedLibraryRule(std::ostream& fout,
std::string depend = "$(";
depend += name;
depend += "_SRC_OBJS) $(" + std::string(name) + "_DEPEND_LIBS)";
- std::string command = "link /dll ";
+ std::string command = "link /dll @<<\n";
command += "$(" + std::string(name) + "_SRC_OBJS) /out:";
- command += m_LibraryOutputPath + std::string(name) + ".dll \\\n";
+ command += m_LibraryOutputPath + std::string(name) + ".dll ";
std::strstream linklibs;
this->OutputLinkLibraries(linklibs, name, t);
linklibs << std::ends;
command += linklibs.str();
delete [] linklibs.str();
+ command += "\n<<\n";
m_QuoteNextCommand = false;
this->OutputMakeRule(fout, "rules for a shared library",
target.c_str(),
@@ -333,11 +334,12 @@ void cmNMakeMakefileGenerator::OutputStaticLibraryRule(std::ostream& fout,
std::string target = m_LibraryOutputPath + std::string(name) + ".lib";
std::string depend = "$(";
depend += std::string(name) + "_SRC_OBJS)";
- std::string command = "link -lib /nologo /out:";
+ std::string command = "link -lib @<<\n\t/nologo /out:";
command += m_LibraryOutputPath;
command += name;
command += ".lib $(";
command += std::string(name) + "_SRC_OBJS)";
+ command += "\n<<\n";
std::string comment = "rule to build static library: ";
comment += name;
m_QuoteNextCommand = false;