File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -320,7 +320,17 @@ export abstract class CMakeDriver implements vscode.Disposable {
320
320
if ( kit . preferredGenerator )
321
321
preferredGenerators . push ( kit . preferredGenerator ) ;
322
322
323
- this . _generator = await this . findBestGenerator ( preferredGenerators ) ;
323
+ // Use the "best generator" selection logic only if the user did not define already
324
+ // in settings (via "cmake.generator") a particular generator to be used.
325
+ if ( this . config . generator ) {
326
+ this . _generator = {
327
+ name : this . config . generator ,
328
+ platform : this . config . platform || undefined ,
329
+ toolset : this . config . toolset || undefined ,
330
+ } ;
331
+ } else {
332
+ this . _generator = await this . findBestGenerator ( preferredGenerators ) ;
333
+ }
324
334
}
325
335
326
336
protected abstract doSetKit ( needsClean : boolean , cb : ( ) => Promise < void > ) : Promise < void > ;
You can’t perform that action at this time.
0 commit comments