forked from qt-creator/qt-creator
Make: Fake progress when running cmake
Neither tea-leaf nor fileapi provides progress information on cmake's configure/generate runs. So fake it. Change-Id: I0e336b4ba145793df6674f4847be1dddad7508cf Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -139,9 +139,10 @@ void CMakeProcess::run(const BuildDirParameters ¶meters, const QStringList &
|
|||||||
|
|
||||||
auto future = std::make_unique<QFutureInterface<void>>();
|
auto future = std::make_unique<QFutureInterface<void>>();
|
||||||
future->setProgressRange(0, 1);
|
future->setProgressRange(0, 1);
|
||||||
Core::ProgressManager::addTask(future->future(),
|
Core::ProgressManager::addTimedTask(*future.get(),
|
||||||
tr("Configuring \"%1\"").arg(parameters.projectName),
|
tr("Configuring \"%1\"").arg(parameters.projectName),
|
||||||
"CMake.Configure");
|
"CMake.Configure",
|
||||||
|
10);
|
||||||
|
|
||||||
process->setCommand(commandLine);
|
process->setCommand(commandLine);
|
||||||
emit started();
|
emit started();
|
||||||
|
Reference in New Issue
Block a user