diff options
Diffstat (limited to 'Source/cmConfigureFileCommand.cxx')
-rw-r--r-- | Source/cmConfigureFileCommand.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmConfigureFileCommand.cxx b/Source/cmConfigureFileCommand.cxx index ccfe3d4..aa337e5 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; } |