Ver Fonte

BUG: Fix crash when CMAKE_DEBUG_POSTFIX is not set.

Brad King há 21 anos atrás
pai
commit
491bebefa2
1 ficheiros alterados com 4 adições e 0 exclusões
  1. 4 0
      Source/cmFileCommand.cxx

+ 4 - 0
Source/cmFileCommand.cxx

@@ -260,6 +260,10 @@ bool cmFileCommand::HandleInstallCommand(
 
   const char* debug_postfix
     = m_Makefile->GetDefinition("CMAKE_DEBUG_POSTFIX");
+  if(!debug_postfix)
+    {
+    debug_postfix = "";
+    }
   const char* destdir = cmSystemTools::GetEnv("DESTDIR");
 
   std::string extra_dir = "";