瀏覽代碼

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
     = m_Makefile->GetDefinition("CMAKE_DEBUG_POSTFIX");
+  if(!debug_postfix)
+    {
+    debug_postfix = "";
+    }
   const char* destdir = cmSystemTools::GetEnv("DESTDIR");
 
   std::string extra_dir = "";