fix cmake re-running failure introduced by ef1127f