Commit b306b0f7 authored by Daniel Mensinger's avatar Daniel Mensinger Committed by Milian Wolff
Browse files

meson: Only configure if necessary

parent 0596b384
......@@ -227,11 +227,15 @@ KJob* MesonManager::createImportJob(ProjectFolderItem* item)
const QList<KJob*> jobs = {
builder()->configure(project), // Make sure the project is configured
AbstractFileManagerPlugin::createImportJob(item), // generate the file system listing
introJob // Load targets from the build directory introspection files
QList<KJob*> jobs;
// Configure the project if necessary
if (m_builder->evaluateBuildDirectory(buildDir.buildDir, buildDir.mesonBackend) != MesonBuilder::MESON_CONFIGURED) {
jobs << builder()->configure(project);
jobs << AbstractFileManagerPlugin::createImportJob(item); // generate the file system listing
jobs << introJob;
auto composite = new ExecuteCompositeJob(this, jobs);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment