diff --git a/Source/cmUnixMakefileGenerator.cxx b/Source/cmUnixMakefileGenerator.cxx index 0461723703..e385b04947 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; }