Using a clean installation of Ubuntu, I installed latest Qt and used QtCreator to open my cmake project. I see that it defaults to the CMAKE_GENERATOR being Unix Makefiles, so is only building the project on one core. So how do I switch it to using Ninja? There seems to be three places to change. First is the "Kit Configuration" dialog. I can set Ninja there, but it seems to make no difference. Then there is the Initial Configuration and Current Configuration tabs. Editing the fields CMAKE_GENERATOTR in both those tabs, causes the entry to go red in color, but when I run cmake, they get changed back to Unix makefiles.
This is the second new machine I have had this problem on. On the first I somehow after going round and round in circles, I managed to put /home/david/Qt/Tools/Ninja/ninja into the CMAKE_GEBERATOR field and have it stick there. It remains red in color, but the builds work. But on this second machine using trial and error I still cant make it stick, it always reverts to Unix makefiles even though Ninja is selected in Kit Configuration. Help would be appreciated.