From a946931f91bfffe8ce06a9924beb424cb0233907 Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Sat, 8 Dec 2001 21:10:37 -0500 Subject: [PATCH] BUG: if LIBRARY_OUTPUT_PATH is set, then use the fullpath for a remote target --- Source/cmUnixMakefileGenerator.cxx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Source/cmUnixMakefileGenerator.cxx b/Source/cmUnixMakefileGenerator.cxx index 8e1a2f1af..1a1c48f33 100644 --- a/Source/cmUnixMakefileGenerator.cxx +++ b/Source/cmUnixMakefileGenerator.cxx @@ -869,9 +869,14 @@ void cmUnixMakefileGenerator::OutputBuildLibraryInDir(std::ostream& fout, const char* library, const char* fullpath) { + const char* makeTarget = library; + if(m_Makefile->GetDefinition("LIBRARY_OUTPUT_PATH")) + { + makeTarget = fullpath; + } fout << cmSystemTools::EscapeSpaces(fullpath) << ":\n\tcd " << cmSystemTools::EscapeSpaces(path) - << "; $(MAKE) " << library << "\n\n"; + << "; $(MAKE) " << makeTarget << "\n\n"; } bool cmUnixMakefileGenerator::SamePath(const char* path1, const char* path2)