Have buildtool detect which "generator" to use
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
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.
#2 Updated by Lynn Garren over 5 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).