Bläddra i källkod

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

Amitha Perera 24 år sedan
förälder
incheckning
e19a90ab20
1 ändrade filer med 2 tillägg och 1 borttagningar
  1. 2 1
      Source/cmUnixMakefileGenerator.cxx

+ 2 - 1
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;
     }