From 491bebefa2f6da9221c5d40ce1c4d3ff2da1c401 Mon Sep 17 00:00:00 2001 From: Brad King Date: Tue, 31 Aug 2004 10:41:08 -0400 Subject: [PATCH] BUG: Fix crash when CMAKE_DEBUG_POSTFIX is not set. --- Source/cmFileCommand.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Source/cmFileCommand.cxx b/Source/cmFileCommand.cxx index 75236bad9..14677f46c 100644 --- a/Source/cmFileCommand.cxx +++ b/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 = "";