summaryrefslogtreecommitdiff
path: root/src/lib/buildgraph/productinstaller.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/buildgraph/productinstaller.cpp')
-rw-r--r--src/lib/buildgraph/productinstaller.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/buildgraph/productinstaller.cpp b/src/lib/buildgraph/productinstaller.cpp
index 3c485dc39..583dedbd8 100644
--- a/src/lib/buildgraph/productinstaller.cpp
+++ b/src/lib/buildgraph/productinstaller.cpp
@@ -82,7 +82,8 @@ void ProductInstaller::install()
QList<const Artifact *> artifactsToInstall;
foreach (const ResolvedProductConstPtr &product, m_products) {
QBS_CHECK(product->buildData);
- foreach (const Artifact *artifact, product->buildData->artifacts) {
+ foreach (const BuildGraphNode *node, product->buildData->nodes) {
+ const Artifact *artifact = dynamic_cast<const Artifact *>(node);
if (artifact->properties->qbsPropertyValue(QLatin1String("install")).toBool())
artifactsToInstall += artifact;
}