diff --git a/src/plugins/nim/project/nimblebuildsystem.cpp b/src/plugins/nim/project/nimblebuildsystem.cpp index e9abfe96019..537000e357e 100644 --- a/src/plugins/nim/project/nimblebuildsystem.cpp +++ b/src/plugins/nim/project/nimblebuildsystem.cpp @@ -149,8 +149,8 @@ void NimbleBuildSystem::updateProject() QList targets = Utils::transform(m_metadata.bin, [&](const QString &bin){ BuildTargetInfo info = {}; info.displayName = bin; - info.targetFilePath = binDir.pathAppended(HostOsInfo::withExecutableSuffix(bin)); - info.projectFilePath = srcDir.pathAppended(bin).stringAppended(".nim"); + info.targetFilePath = binDir.pathAppended(bin); + info.projectFilePath = projectFilePath(); info.workingDirectory = binDir; info.buildKey = bin; return info;