Merge topic 'stringapi-crash-cleanup'

3bae343f cmCPackGenerator: Avoid crash on undefined CMAKE_MAKE_PROGRAM
This commit is contained in:
Brad King 2014-06-27 09:42:44 -04:00 committed by CMake Topic Stage
commit 4fc453c420
1 changed files with 2 additions and 2 deletions

View File

@ -637,8 +637,8 @@ int cmCPackGenerator::InstallProjectViaInstallCMakeProjects(
if ( globalGenerator->GetPreinstallTargetName() )
{
globalGenerator->FindMakeProgram(this->MakefileMap);
const char* cmakeMakeProgram
= this->MakefileMap->GetDefinition("CMAKE_MAKE_PROGRAM");
std::string cmakeMakeProgram
= this->MakefileMap->GetSafeDefinition("CMAKE_MAKE_PROGRAM");
std::vector<std::string> buildCommand;
globalGenerator->GenerateBuildCommand(buildCommand, cmakeMakeProgram,
installProjectName, installDirectory,