Honour all non-default CMake generator choices.

Was only honouring a non-default choice of generator if it was a flavour of MSVC.  Fixes #42.