[cmake-commits] andy committed cmConfigureFileCommand.cxx 1.28 1.29

cmake-commits at cmake.org cmake-commits at cmake.org
Wed Apr 4 12:05:47 EDT 2007


Update of /cvsroot/CMake/CMake/Source
In directory public:/mounts/ram/cvs-serv1004/Source

Modified Files:
	cmConfigureFileCommand.cxx 
Log Message:
BUG: No need for the backward compatibility variable warning


Index: cmConfigureFileCommand.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmConfigureFileCommand.cxx,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -d -r1.28 -r1.29
--- cmConfigureFileCommand.cxx	10 May 2006 18:15:09 -0000	1.28
+++ cmConfigureFileCommand.cxx	4 Apr 2007 16:05:44 -0000	1.29
@@ -44,8 +44,8 @@
   // 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;
     }



More information about the Cmake-commits mailing list