summaryrefslogtreecommitdiffstats
path: root/Source/cmAbstractFilesCommand.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/cmAbstractFilesCommand.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/cmAbstractFilesCommand.cxx')
-rw-r--r--Source/cmAbstractFilesCommand.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmAbstractFilesCommand.cxx b/Source/cmAbstractFilesCommand.cxx
index 653579d..7baf743 100644
--- a/Source/cmAbstractFilesCommand.cxx
+++ b/Source/cmAbstractFilesCommand.cxx
@@ -23,7 +23,7 @@
bool cmAbstractFilesCommand::InitialPass(std::vector<std::string> const& args)
{
const char* versionValue
- = m_Makefile->GetDefinition("CMAKE_BACKWARDS_COMPATIBILITY");
+ = m_Makefile->GetRequiredDefinition("CMAKE_BACKWARDS_COMPATIBILITY");
if (atof(versionValue) > 1.4)
{
this->SetError("The ABSTRACT_FILES command was deprecated in CMake version 1.4 and will be removed in later versions of CMake. You should modify your CMakeLists.txt files to use the SET command instead, or set the cache value of CMAKE_BACKWARDS_COMPATIBILITY to 1.2 or less.\n");