From e19a90ab2092c53f1c1c1bcb53bde6bc6a7d95b2 Mon Sep 17 00:00:00 2001 From: Amitha Perera Date: Mon, 10 Dec 2001 12:02:10 -0500 Subject: [PATCH] BUG: LIBRARY_OUTPATH_PATH may be "set" to the null string, in which case it should be ignored. --- Source/cmUnixMakefileGenerator.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/cmUnixMakefileGenerator.cxx b/Source/cmUnixMakefileGenerator.cxx index 046172370..e385b0494 100644 --- a/Source/cmUnixMakefileGenerator.cxx +++ b/Source/cmUnixMakefileGenerator.cxx @@ -870,7 +870,8 @@ void cmUnixMakefileGenerator::OutputBuildLibraryInDir(std::ostream& fout, const char* fullpath) { const char* makeTarget = library; - if(m_Makefile->GetDefinition("LIBRARY_OUTPUT_PATH")) + const char* libOutPath = m_Makefile->GetDefinition("LIBRARY_OUTPUT_PATH"); + if(libOutPath && strcmp( libOutPath, "" ) != 0) { makeTarget = fullpath; }