diff --git a/Source/cmFileCommand.cxx b/Source/cmFileCommand.cxx index 75236bad92..14677f46cb 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 = "";