BUG: LIBRARY_OUTPATH_PATH may be "set" to the null string, in which case it

should be ignored.
This commit is contained in:
Amitha Perera 2001-12-10 12:02:10 -05:00
parent ee31c3e0a4
commit e19a90ab20
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}