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/cmGlobalCodeWarriorGenerator.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/cmGlobalCodeWarriorGenerator.cxx')
-rw-r--r-- | Source/cmGlobalCodeWarriorGenerator.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmGlobalCodeWarriorGenerator.cxx b/Source/cmGlobalCodeWarriorGenerator.cxx index 0a9c1b5..735c5c8 100644 --- a/Source/cmGlobalCodeWarriorGenerator.cxx +++ b/Source/cmGlobalCodeWarriorGenerator.cxx @@ -33,7 +33,7 @@ void cmGlobalCodeWarriorGenerator::EnableLanguage(const char*, if(!this->GetLanguageEnabled("CXX")) { std::string fpath = - mf->GetDefinition("CMAKE_ROOT"); + mf->GetRequiredDefinition("CMAKE_ROOT"); fpath += "/Templates/CMakeCodeWarriorConfig.cmake"; mf->ReadListFile(0,fpath.c_str()); this->SetLanguageEnabled("CXX"); |