summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalUnixMakefileGenerator.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2004-08-11 20:58:09 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2004-08-11 20:58:09 (GMT)
commitb41d447935c518c5d3352284afd8b24732985417 (patch)
tree9bef9c2493dc6b330a7edccfec40d19c8e09e556 /Source/cmGlobalUnixMakefileGenerator.cxx
parentbb32a51825648f5fe44c12df8a3becd5aa88061e (diff)
downloadCMake-b41d447935c518c5d3352284afd8b24732985417.zip
CMake-b41d447935c518c5d3352284afd8b24732985417.tar.gz
CMake-b41d447935c518c5d3352284afd8b24732985417.tar.bz2
ENH: use GetRequiredDefinition instead of GetDefinition and crash
Diffstat (limited to 'Source/cmGlobalUnixMakefileGenerator.cxx')
-rw-r--r--Source/cmGlobalUnixMakefileGenerator.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmGlobalUnixMakefileGenerator.cxx b/Source/cmGlobalUnixMakefileGenerator.cxx
index 8719fbd..463c209 100644
--- a/Source/cmGlobalUnixMakefileGenerator.cxx
+++ b/Source/cmGlobalUnixMakefileGenerator.cxx
@@ -43,7 +43,7 @@ void cmGlobalUnixMakefileGenerator::EnableLanguage(const char* lang,
cmSystemTools::Error("CMAKE_C_COMPILER not set, after EnableLanguage");
return;
}
- const char* cc = mf->GetDefinition("CMAKE_C_COMPILER");
+ const char* cc = mf->GetRequiredDefinition("CMAKE_C_COMPILER");
std::string path = cmSystemTools::FindProgram(cc);
if(path.size() == 0)
{
@@ -64,7 +64,7 @@ void cmGlobalUnixMakefileGenerator::EnableLanguage(const char* lang,
}
if(strcmp(lang, "CXX") == 0)
{
- const char* cxx = mf->GetDefinition("CMAKE_CXX_COMPILER");
+ const char* cxx = mf->GetRequiredDefinition("CMAKE_CXX_COMPILER");
path = cmSystemTools::FindProgram(cxx);
if(path.size() == 0)
{