diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2004-08-11 20:58:09 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2004-08-11 20:58:09 (GMT) |
commit | b41d447935c518c5d3352284afd8b24732985417 (patch) | |
tree | 9bef9c2493dc6b330a7edccfec40d19c8e09e556 /Source/cmGlobalGenerator.cxx | |
parent | bb32a51825648f5fe44c12df8a3becd5aa88061e (diff) | |
download | CMake-b41d447935c518c5d3352284afd8b24732985417.zip CMake-b41d447935c518c5d3352284afd8b24732985417.tar.gz CMake-b41d447935c518c5d3352284afd8b24732985417.tar.bz2 |
ENH: use GetRequiredDefinition instead of GetDefinition and crash
Diffstat (limited to 'Source/cmGlobalGenerator.cxx')
-rw-r--r-- | Source/cmGlobalGenerator.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmGlobalGenerator.cxx b/Source/cmGlobalGenerator.cxx index a4c1e25..d33694b 100644 --- a/Source/cmGlobalGenerator.cxx +++ b/Source/cmGlobalGenerator.cxx @@ -53,7 +53,7 @@ void cmGlobalGenerator::EnableLanguage(const char* lang, "Generator implementation error, " "all generators must specify m_FindMakeProgramFile"); } - std::string root = mf->GetDefinition("CMAKE_ROOT"); + std::string root = mf->GetRequiredDefinition("CMAKE_ROOT"); if(!mf->GetDefinition("CMAKE_MAKE_PROGRAM") || cmSystemTools::IsOff(mf->GetDefinition("CMAKE_MAKE_PROGRAM"))) { @@ -73,7 +73,7 @@ void cmGlobalGenerator::EnableLanguage(const char* lang, cmSystemTools::SetFatalErrorOccured(); return; } - std::string makeProgram = mf->GetDefinition("CMAKE_MAKE_PROGRAM"); + std::string makeProgram = mf->GetRequiredDefinition("CMAKE_MAKE_PROGRAM"); // if there are spaces in the make program use short path // but do not short path the actual program name, as // this can cause trouble with VSExpress |