GHS: Fix RERUN_CMAKE issue when generation step fails

Fixes: 23435
1 file changed