summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Source/cmMakefile.cxx15
-rw-r--r--Source/cmMakefile.h7
2 files changed, 22 insertions, 0 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx
index 31ce605..5e22b15 100644
--- a/Source/cmMakefile.cxx
+++ b/Source/cmMakefile.cxx
@@ -527,6 +527,21 @@ void cmMakefile::SetLocalGenerator(cmLocalGenerator* lg)
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
diff --git a/Source/cmMakefile.h b/Source/cmMakefile.h
index 5664e25..12545e9 100644
--- a/Source/cmMakefile.h
+++ b/Source/cmMakefile.h
@@ -123,6 +123,13 @@ public:
{ 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.
*/