diff --git a/src/drivers/cmfileapi-driver.ts b/src/drivers/cmfileapi-driver.ts index 4544b337..5c426898 100644 --- a/src/drivers/cmfileapi-driver.ts +++ b/src/drivers/cmfileapi-driver.ts @@ -215,7 +215,7 @@ export class CMakeFileApiDriver extends CMakeDriver { // Dup args so we can modify them const args = Array.from(args_); - args.push(`-S${util.lightNormalizePath(this.sourceDir)}`); + args.push(`-H${util.lightNormalizePath(this.sourceDir)}`); const bindir = util.lightNormalizePath(this.binaryDir); args.push(`-B${bindir}`); const gen = this.generator;