[cmake-commits] king committed cmMakefile.cxx 1.432 1.433
cmMakefile.h 1.222 1.223
cmake-commits at cmake.org
cmake-commits at cmake.org
Mon Feb 11 13:35:32 EST 2008
Update of /cvsroot/CMake/CMake/Source
In directory public:/mounts/ram/cvs-serv2026/Source
Modified Files:
cmMakefile.cxx cmMakefile.h
Log Message:
ENH: Add cmMakefile::NeedBackwardsCompatibility method to pass through to cmLocalGenerator::NeedBackwardsCompatibility for convenience.
Index: cmMakefile.h
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmMakefile.h,v
retrieving revision 1.222
retrieving revision 1.223
diff -u -d -r1.222 -r1.223
--- cmMakefile.h 28 Jan 2008 13:38:36 -0000 1.222
+++ cmMakefile.h 11 Feb 2008 18:35:30 -0000 1.223
@@ -123,6 +123,13 @@
{ return this->LocalGenerator;}
/**
+ * Test whether compatibility is set to a given version or lower.
+ */
+ bool NeedBackwardsCompatibility(unsigned int major,
+ unsigned int minor,
+ unsigned int patch = 0xFFu);
+
+ /**
* Perform FinalPass, Library dependency analysis etc before output of the
* makefile.
*/
Index: cmMakefile.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmMakefile.cxx,v
retrieving revision 1.432
retrieving revision 1.433
diff -u -d -r1.432 -r1.433
--- cmMakefile.cxx 30 Jan 2008 13:37:38 -0000 1.432
+++ cmMakefile.cxx 11 Feb 2008 18:35:30 -0000 1.433
@@ -527,6 +527,21 @@
this->LocalGenerator = lg;
}
+bool cmMakefile::NeedBackwardsCompatibility(unsigned int major,
+ unsigned int minor,
+ unsigned int patch)
+{
+ if(this->LocalGenerator)
+ {
+ return
+ this->LocalGenerator->NeedBackwardsCompatibility(major, minor, patch);
+ }
+ else
+ {
+ return false;
+ }
+}
+
void cmMakefile::FinalPass()
{
// do all the variable expansions here
More information about the Cmake-commits
mailing list