Feature #9195

Have buildtool detect which "generator" to use

Added by Gianluca Petrillo almost 6 years ago. Updated almost 6 years ago.

Target version:
Start date:
Due date:
% Done:


Estimated time:
2.00 h
Spent time:


When running the configuration phase, if there is a pre-existing build I would like buildtool to use the same generator as it was used before, without having to tell it explicitly.
I am using buildtool through mrb, so this translates into being able to do:

$ cd "$MRB_TOP"
$ mrb zapBuild ; mrbsetenv # clean environment
$ mrb build -C # use the predefined generator (GNU make)
$ mrb build -C # use the last generator (GNU make)
$ mrb zapBuild ; mrbsetenv # start over
$ mrb build -C --generator=ninja # use the specified generator (ninja)
$ mrb build -C # use the last generator (ninja)

Currently, the last command tries to invoke GNU make and rightly fails.


#1 Updated by Christopher Green almost 6 years ago

  • Status changed from New to Assigned
  • Assignee set to Lynn Garren
  • Estimated time set to 2.00 h

This would seem to be a reasonable feature to put into buildtool.

#2 Updated by Lynn Garren almost 6 years ago

  • Status changed from Assigned to Resolved
  • % Done changed from 0 to 100

The information about which generator to use is stored as an internal cmake variable. The generator is not meant to be changed unless you remove all files generated by cmake in your build directory. Given this, it is entirely reasonable that buildtool also respect the designated generator.

This fix is in cetbuildtools v4_11_02 now available in SciSoft (and also on woof).

#3 Updated by Lynn Garren almost 6 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF