From 0b92b2faf5f4983c0b203d5d31f815470f0af589 Mon Sep 17 00:00:00 2001 From: Andy Cedilnik Date: Wed, 4 Apr 2007 12:05:44 -0400 Subject: [PATCH] BUG: No need for the backward compatibility variable warning --- Source/cmConfigureFileCommand.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/cmConfigureFileCommand.cxx b/Source/cmConfigureFileCommand.cxx index ccfe3d4b4..aa337e503 100644 --- a/Source/cmConfigureFileCommand.cxx +++ b/Source/cmConfigureFileCommand.cxx @@ -44,8 +44,8 @@ bool cmConfigureFileCommand::InitialPass(std::vector 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; }