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:
Tobias Hunger
2019-06-17 12:39:40 +02:00
parent e3aa5a0658
commit 295a0c5593

View File

@@ -139,9 +139,10 @@ void CMakeProcess::run(const BuildDirParameters &parameters, const QStringList &
auto future = std::make_unique<QFutureInterface<void>>();
future->setProgressRange(0, 1);
Core::ProgressManager::addTask(future->future(),
tr("Configuring \"%1\"").arg(parameters.projectName),
"CMake.Configure");
Core::ProgressManager::addTimedTask(*future.get(),
tr("Configuring \"%1\"").arg(parameters.projectName),
"CMake.Configure",
10);
process->setCommand(commandLine);
emit started();