From 4fefbbcb66564ae87a673e6b3c506f5a21e03fee Mon Sep 17 00:00:00 2001 From: Christian Stenger Date: Wed, 18 Mar 2020 09:29:10 +0100 Subject: [PATCH] QbsPM: Pass enabled information to code model If a project part is not enabled let the code model know about it as others may refer to this information as well. Fixes an issue with the AutoTest plugin when it tries to run a test for which no build targets will be generated at all as it is disabled by some condition. Change-Id: I342e8dde0a171084894ec59fdb462d7e9526c8db Reviewed-by: Christian Kandeler --- src/plugins/qbsprojectmanager/qbsproject.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/plugins/qbsprojectmanager/qbsproject.cpp b/src/plugins/qbsprojectmanager/qbsproject.cpp index 08e65445cb4..ed9488f7eb3 100644 --- a/src/plugins/qbsprojectmanager/qbsproject.cpp +++ b/src/plugins/qbsprojectmanager/qbsproject.cpp @@ -919,6 +919,7 @@ static RawProjectParts generateProjectParts( rpp.setBuildTargetType(prd.value("is-runnable").toBool() ? BuildTargetType::Executable : BuildTargetType::Library); + rpp.setSelectedForBuilding(grp.value("is-enabled").toBool()); QHash filePathToSourceArtifact; bool hasCFiles = false;