summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-06-27 13:42:44 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2014-06-27 13:42:44 (GMT)
commit4fc453c420064b0584b668ce42965fb31dd9ed09 (patch)
tree557e91ec2b39082d09b6a4b9bd0158ea23dbae94
parent3138da6e675102af8bd81e8715abc7a57806377f (diff)
parent3bae343f62e050da78476811234e1f8a055f5d04 (diff)
downloadCMake-4fc453c420064b0584b668ce42965fb31dd9ed09.zip
CMake-4fc453c420064b0584b668ce42965fb31dd9ed09.tar.gz
CMake-4fc453c420064b0584b668ce42965fb31dd9ed09.tar.bz2
Merge topic 'stringapi-crash-cleanup'
3bae343f cmCPackGenerator: Avoid crash on undefined CMAKE_MAKE_PROGRAM
-rw-r--r--Source/CPack/cmCPackGenerator.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/CPack/cmCPackGenerator.cxx b/Source/CPack/cmCPackGenerator.cxx
index 91f92c5..9336bed 100644
--- a/Source/CPack/cmCPackGenerator.cxx
+++ b/Source/CPack/cmCPackGenerator.cxx
@@ -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,