cmAutogen: Rename method to InitializeAutogenTarget

This reflects better what it is doing.
This commit is contained in:
Stephen Kelly 2013-11-04 10:32:27 +01:00
parent 45735f3827
commit d2f4b1e3cf
3 changed files with 3 additions and 3 deletions

View File

@ -1291,7 +1291,7 @@ void cmGlobalGenerator::CreateQtAutoGeneratorsTargets()
&& !target.IsImported())
{
cmQtAutoGenerators autogen;
if(autogen.InitializeMocSourceFile(&target))
if(autogen.InitializeAutogenTarget(&target))
{
autogens.push_back(std::make_pair(autogen, &target));
}

View File

@ -156,7 +156,7 @@ static std::string getAutogenTargetDir(cmTarget *target)
return targetDir;
}
bool cmQtAutoGenerators::InitializeMocSourceFile(cmTarget* target)
bool cmQtAutoGenerators::InitializeAutogenTarget(cmTarget* target)
{
cmMakefile* makefile = target->GetMakefile();
// don't do anything if there is no Qt4 or Qt5Core (which contains moc):

View File

@ -23,7 +23,7 @@ public:
cmQtAutoGenerators();
bool Run(const char* targetDirectory, const char *config);
bool InitializeMocSourceFile(cmTarget* target);
bool InitializeAutogenTarget(cmTarget* target);
void SetupAutoGenerateTarget(cmTarget* target);
private: