Commit 36616a1a authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧

cmake: update the target location when the build directory changes

parent 8e875f7e
......@@ -344,6 +344,9 @@ static void populateTargets(ProjectFolderItem* folder, const QHash<KDevelop::Pat
if (idx < 0) {
delete item;
} else {
auto cmakeItem = dynamic_cast<CMakeTargetItem*>(item);
if (cmakeItem)
cmakeItem->setBuiltUrl(dirTargets[idx].artifacts.value(0));
dirTargets.removeAt(idx);
}
}
......
......@@ -33,6 +33,7 @@ class CMakeTargetItem : public KDevelop::ProjectExecutableTargetItem
public:
CMakeTargetItem(KDevelop::ProjectFolderItem* parent, const QString& name, const KDevelop::Path &builtUrl);
void setBuiltUrl(const KDevelop::Path &builtUrl) { m_builtUrl = builtUrl; }
QUrl builtUrl() const override;
QUrl installedUrl() const override;
......
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