Remove the old if/else cmake syntax

that was weird and forced you to replicate the if clause in the else and
endif
9 files changed