We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b1fe911 commit 4006a88Copy full SHA for 4006a88
src/drivers/driver.ts
@@ -394,6 +394,10 @@ export abstract class CMakeDriver implements vscode.Disposable {
394
log.debug('Run _refreshExpansions cb');
395
const opts = this.expansionOptions;
396
this._sourceDirectory = util.lightNormalizePath(await expand.expandString(this.config.sourceDirectory, opts));
397
+ if (path.basename(this._sourceDirectory).toLocaleLowerCase() === "cmakelists.txt") {
398
+ // Don't fail if CMakeLists.txt was accidentally appended to the sourceDirectory.
399
+ this._sourceDirectory = path.dirname(this._sourceDirectory);
400
+ }
401
this._binaryDir = util.lightNormalizePath(await expand.expandString(this.config.buildDirectory, opts));
402
403
const installPrefix = this.config.installPrefix;
0 commit comments