Skip to content
Snippets Groups Projects
Commit 47f9ffe0 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧
Browse files

Support not having an artifact

It's what happens on the compile_commands.json mode, we already have a
fall-back in place.
parent 38b0fcff
No related branches found
No related tags found
No related merge requests found
......@@ -348,7 +348,7 @@ static void populateTargets(ProjectFolderItem* folder, const QHash<KDevelop::Pat
foreach (const auto& target, dirTargets) {
switch(target.type) {
case CMakeTarget::Executable:
new CMakeTargetItem(folder, target.name, target.artifacts.constFirst());
new CMakeTargetItem(folder, target.name, target.artifacts.value(0));
break;
case CMakeTarget::Library:
new ProjectLibraryTargetItem(folder->project(), target.name, folder);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment