flipped an else with an endif in cmake