BUG: Fix crash when CMAKE_DEBUG_POSTFIX is not set.

This commit is contained in:
Brad King 2004-08-31 10:41:08 -04:00
parent dc73da6e93
commit 491bebefa2
1 changed files with 4 additions and 0 deletions

View File

@ -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 = "";