Fix bootstrap test with automoc

Alex
This commit is contained in:
Alex Neundorf 2011-08-17 17:08:50 +02:00
parent afb3edc181
commit 71c29d11b3
2 changed files with 3 additions and 2 deletions

View File

@ -958,6 +958,7 @@ bool cmGlobalGenerator::CheckTargets()
//----------------------------------------------------------------------------
void cmGlobalGenerator::CreateAutomocTargets()
{
#ifdef CMAKE_BUILD_WITH_CMAKE
for(unsigned int i=0; i < this->LocalGenerators.size(); ++i)
{
cmTargets& targets =
@ -979,6 +980,7 @@ void cmGlobalGenerator::CreateAutomocTargets()
}
}
}
#endif
}

View File

@ -1573,14 +1573,13 @@ int cmake::ExecuteCMakeCommand(std::vector<std::string>& args)
{
return cmake::ExecuteEchoColor(args);
}
#endif
else if (args[1] == "cmake_automoc")
{
cmQtAutomoc automoc;
automoc.Run(args[2].c_str());
return 0;
}
#endif
// Tar files
else if (args[1] == "tar" && args.size() > 3)