I have a session with three cmake based projects with two kits (Host/Target) and two build types (Debug/Release).
When I switch to a different kit or build type using the kit selector button on the left button panel than the buttons for Run, Debug and Build are disabled and cmake is started. After cmake has finished successfully the buttons are not always enabled again. Sometimes they are all enabled, sometimes non of them, sometimes only Run and Debug.
Most times it's sufficient to to click once on the project entry in the project tree and alle the mentioned buttons get enabled. Sometimes it needs to open the context menu of the project to enable the buttons. And sometimes I have to call "run cmake" from the context menu...
In every case cmake does not report anny error:
-- Configuring done
-- Generating done
-- Build files have been written to: /home/devel/projects/....
But only when I call cmake explicetly all buttons are enabled - it's not deterministic when cmake is called when using the kit selector.