summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefile.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2008-02-11 18:35:30 (GMT)
committerBrad King <brad.king@kitware.com>2008-02-11 18:35:30 (GMT)
commit739a463539946323b09e4c22f5fdd38395add1e1 (patch)
treee29146827cadbb443f1ae72a5bbea61357e987f4 /Source/cmMakefile.cxx
parent968c53ff6f42eb3e60a10009c308017aea5e0506 (diff)
downloadCMake-739a463539946323b09e4c22f5fdd38395add1e1.zip
CMake-739a463539946323b09e4c22f5fdd38395add1e1.tar.gz
CMake-739a463539946323b09e4c22f5fdd38395add1e1.tar.bz2
ENH: Add cmMakefile::NeedBackwardsCompatibility method to pass through to cmLocalGenerator::NeedBackwardsCompatibility for convenience.
Diffstat (limited to 'Source/cmMakefile.cxx')
-rw-r--r--Source/cmMakefile.cxx15
1 files changed, 15 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