Remove unnecessary cmake variables