diff --git a/src/cmakeProject.ts b/src/cmakeProject.ts index b34b614c9..c50b56065 100644 --- a/src/cmakeProject.ts +++ b/src/cmakeProject.ts @@ -2249,7 +2249,7 @@ export class CMakeProject { } if (name) { - const found = (await this.executableTargets).find(e => e.name === name); + const found = (await this.executableTargets).find(e => path.parse(e.path).name === name); if (!found) { return null; }