Bläddra i källkod

BUG: Fix crash when CMAKE_DEBUG_POSTFIX is not set.

Brad King 21 år sedan
förälder
incheckning
491bebefa2
1 ändrade filer med 4 tillägg och 0 borttagningar
  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 = "";