diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2002-07-31 17:45:07 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2002-07-31 17:45:07 (GMT) |
commit | fc7e4169e165fdd0008b3db116c7f4919dc38fd7 (patch) | |
tree | 603e1164d67945bdb3b1fc5b55e4cc80a4138e9c /Source/cmNMakeMakefileGenerator.cxx | |
parent | 836a280a6a98725c57ad4d69b8e33c1cef9de017 (diff) | |
download | CMake-fc7e4169e165fdd0008b3db116c7f4919dc38fd7.zip CMake-fc7e4169e165fdd0008b3db116c7f4919dc38fd7.tar.gz CMake-fc7e4169e165fdd0008b3db116c7f4919dc38fd7.tar.bz2 |
BUG: fix jump to directory and build for nmake if library path is not set. combine OutputBuildExecutableInDir and OutputBuildLibraryInDir into OutputBuildTargetInDir
Diffstat (limited to 'Source/cmNMakeMakefileGenerator.cxx')
-rw-r--r-- | Source/cmNMakeMakefileGenerator.cxx | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/Source/cmNMakeMakefileGenerator.cxx b/Source/cmNMakeMakefileGenerator.cxx index 5059d9f..713cc69 100644 --- a/Source/cmNMakeMakefileGenerator.cxx +++ b/Source/cmNMakeMakefileGenerator.cxx @@ -676,22 +676,27 @@ bool cmNMakeMakefileGenerator::SamePath(const char* path1, const char* path2) cmSystemTools::LowerCase(ShortPath(path2)); } -void cmNMakeMakefileGenerator::OutputBuildLibraryInDir(std::ostream& fout, - const char* path, - const char* , - const char* fullpath) +void cmNMakeMakefileGenerator::OutputBuildTargetInDir(std::ostream& fout, + const char* path, + const char* library, + const char* fullpath, + const char* libOutPath) { - + const char* makeTarget = library; std::string currentDir = this->ConvertToOutputPath(m_Makefile->GetCurrentOutputDirectory()); std::string wpath = this->ConvertToOutputPath(path); std::string wfullpath = this->ConvertToOutputPath(fullpath); + if(libOutPath && strcmp( libOutPath, "" ) != 0) + { + makeTarget = wfullpath.c_str(); + } fout << wfullpath << ":\n\tcd " << wpath << "\n" << "\t$(MAKE) -$(MAKEFLAGS) $(MAKESILENT) cmake.depends\n" << "\t$(MAKE) -$(MAKEFLAGS) $(MAKESILENT) cmake.check_depends\n" << "\t$(MAKE) -$(MAKEFLAGS) $(MAKESILENT) -f cmake.check_depends\n" - << "\t$(MAKE) $(MAKESILENT) " << wfullpath + << "\t$(MAKE) $(MAKESILENT) " << makeTarget << "\n\tcd " << currentDir << "\n"; } |