summaryrefslogtreecommitdiff
path: root/Source/cmConfigureFileCommand.cxx
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2007-04-04 12:05:44 -0400
committerAndy Cedilnik <andy.cedilnik@kitware.com>2007-04-04 12:05:44 -0400
commit0b92b2faf5f4983c0b203d5d31f815470f0af589 (patch)
tree277e892f503e0f9449b7f8f68e93b0ec28f9eccc /Source/cmConfigureFileCommand.cxx
parent6fb9e2781a00d237162dcc617e04d8aaedb6a10f (diff)
downloadcmake-0b92b2faf5f4983c0b203d5d31f815470f0af589.tar.gz
BUG: No need for the backward compatibility variable warning
Diffstat (limited to 'Source/cmConfigureFileCommand.cxx')
-rw-r--r--Source/cmConfigureFileCommand.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmConfigureFileCommand.cxx b/Source/cmConfigureFileCommand.cxx
index ccfe3d4b49..aa337e503f 100644
--- a/Source/cmConfigureFileCommand.cxx
+++ b/Source/cmConfigureFileCommand.cxx
@@ -44,8 +44,8 @@ bool cmConfigureFileCommand::InitialPass(std::vector<std::string> const& args)
// after 2.0 it only does InitialPass
this->Immediate = false;
const char* versionValue
- = this->Makefile->GetRequiredDefinition("CMAKE_BACKWARDS_COMPATIBILITY");
- if (atof(versionValue) > 2.0)
+ = this->Makefile->GetDefinition("CMAKE_BACKWARDS_COMPATIBILITY");
+ if (versionValue && atof(versionValue) > 2.0)
{
this->Immediate = true;
}