فهرست منبع

BUG: Fix crash when CMAKE_DEBUG_POSTFIX is not set.

Brad King 21 سال پیش
والد
کامیت
491bebefa2
1فایلهای تغییر یافته به همراه4 افزوده شده و 0 حذف شده
  1. 4 0
      Source/cmFileCommand.cxx

+ 4 - 0
Source/cmFileCommand.cxx

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