ENH: Add cmMakefile::NeedBackwardsCompatibility method to pass through to cmLocalGenerator::NeedBackwardsCompatibility for convenience.
This commit is contained in:
parent
968c53ff6f
commit
739a463539
|
@ -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
|
||||
|
|
|
@ -122,6 +122,13 @@ public:
|
|||
cmLocalGenerator* GetLocalGenerator()
|
||||
{ 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.
|
||||
|
|
Loading…
Reference in New Issue