mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-05 13:20:47 -06:00
Fix bootstrap test with automoc
Alex
This commit is contained in:
@@ -958,6 +958,7 @@ bool cmGlobalGenerator::CheckTargets()
|
|||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
void cmGlobalGenerator::CreateAutomocTargets()
|
void cmGlobalGenerator::CreateAutomocTargets()
|
||||||
{
|
{
|
||||||
|
#ifdef CMAKE_BUILD_WITH_CMAKE
|
||||||
for(unsigned int i=0; i < this->LocalGenerators.size(); ++i)
|
for(unsigned int i=0; i < this->LocalGenerators.size(); ++i)
|
||||||
{
|
{
|
||||||
cmTargets& targets =
|
cmTargets& targets =
|
||||||
@@ -979,6 +980,7 @@ void cmGlobalGenerator::CreateAutomocTargets()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1573,14 +1573,13 @@ int cmake::ExecuteCMakeCommand(std::vector<std::string>& args)
|
|||||||
{
|
{
|
||||||
return cmake::ExecuteEchoColor(args);
|
return cmake::ExecuteEchoColor(args);
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
else if (args[1] == "cmake_automoc")
|
else if (args[1] == "cmake_automoc")
|
||||||
{
|
{
|
||||||
cmQtAutomoc automoc;
|
cmQtAutomoc automoc;
|
||||||
automoc.Run(args[2].c_str());
|
automoc.Run(args[2].c_str());
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
// Tar files
|
// Tar files
|
||||||
else if (args[1] == "tar" && args.size() > 3)
|
else if (args[1] == "tar" && args.size() > 3)
|
||||||
|
|||||||
Reference in New Issue
Block a user