diff options
author | Brad King <brad.king@kitware.com> | 2008-02-11 13:35:30 -0500 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2008-02-11 13:35:30 -0500 |
commit | 739a463539946323b09e4c22f5fdd38395add1e1 (patch) | |
tree | e29146827cadbb443f1ae72a5bbea61357e987f4 | |
parent | 968c53ff6f42eb3e60a10009c308017aea5e0506 (diff) | |
download | cmake-739a463539946323b09e4c22f5fdd38395add1e1.tar.gz |
ENH: Add cmMakefile::NeedBackwardsCompatibility method to pass through to cmLocalGenerator::NeedBackwardsCompatibility for convenience.
-rw-r--r-- | Source/cmMakefile.cxx | 15 | ||||
-rw-r--r-- | Source/cmMakefile.h | 7 |
2 files changed, 22 insertions, 0 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx index 31ce6051fc..5e22b15ca2 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 5664e2587a..12545e979d 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. */ |