message: If we have both "-DCMAKE_GENERATOR:STRING=" and the generator from
  toolchain, prefre using "-DCMAKE_GENERATOR:STRING=", as
  "-DCMAKE_GENERATOR:STRING=" can be defined by different cmake-variants.yaml
diff: @@ -206,7 +206,13 @@ export class CMakeFileApiDriver extends codemodel.CodeModelDriver {
  const bindir = util.lightNormalizePath(this.binaryDir);
  args.push(`-B${bindir}`);
  const gen = this.generator;
  - if (gen) {
  + let has_gen = false;
  + for (const arg of args) {
  + if (arg.startsWith("-DCMAKE_GENERATOR:STRING=")) {
  + has_gen = true;
  + }
  + }
  + if (!has_gen && gen) {
  args.push('-G');
  args.push(gen.name);
  if (gen.toolset) {
  