cmake cleanup option handling