Remove unnecessary cmake code