diff options
author | Berk Geveci <berk.geveci@kitware.com> | 2001-11-27 22:53:05 (GMT) |
---|---|---|
committer | Berk Geveci <berk.geveci@kitware.com> | 2001-11-27 22:53:05 (GMT) |
commit | 0180d3156f6f016d0923fd150d1a93d883b0b257 (patch) | |
tree | ce917961bde88036f891e6b2568f46d380232b6b /Source/cmUnixMakefileGenerator.cxx | |
parent | 1944e1887df5a08abb9969268b0f8be272275c01 (diff) | |
download | CMake-0180d3156f6f016d0923fd150d1a93d883b0b257.zip CMake-0180d3156f6f016d0923fd150d1a93d883b0b257.tar.gz CMake-0180d3156f6f016d0923fd150d1a93d883b0b257.tar.bz2 |
ENH: nmake generator much closer to working with spaces
Diffstat (limited to 'Source/cmUnixMakefileGenerator.cxx')
-rw-r--r-- | Source/cmUnixMakefileGenerator.cxx | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/Source/cmUnixMakefileGenerator.cxx b/Source/cmUnixMakefileGenerator.cxx index 6a27ff6..4a588ee 100644 --- a/Source/cmUnixMakefileGenerator.cxx +++ b/Source/cmUnixMakefileGenerator.cxx @@ -794,13 +794,23 @@ void cmUnixMakefileGenerator::OutputDependLibs(std::ostream& fout) } libpath += library; // put out a rule to build the library if it does not exist - fout << cmSystemTools::EscapeSpaces(libpath.c_str()) - << ":\n\tcd " << cmSystemTools::EscapeSpaces(cacheValue) - << "; $(MAKE) " << m_LibraryOutputPath << library.c_str() << "\n\n"; + this->OutputBuildLibraryInDir(fout, + cacheValue, + library.c_str(), + libpath.c_str()); } } } +void cmUnixMakefileGenerator::OutputBuildLibraryInDir(std::ostream& fout, + const char* path, + const char* , + const char* fullpath) +{ + fout << cmSystemTools::EscapeSpaces(fullpath) + << ":\n\tcd " << cmSystemTools::EscapeSpaces(path) + << "; $(MAKE) " << fullpath << "\n\n"; +} void cmUnixMakefileGenerator::OutputLibDepend(std::ostream& fout, const char* name) { @@ -1005,7 +1015,7 @@ void cmUnixMakefileGenerator::OutputObjectDepends(std::ostream& fout) source->GetDepends().begin(); dep != source->GetDepends().end(); ++dep) { - fout << " \\\n" << dep->c_str(); + fout << " \\\n" << cmSystemTools::EscapeSpaces(dep->c_str()); } fout << "\n\n"; } |