cmake: remove the if