Fixed cmake error where else should be elseif