Remove obsolete cmake code