Update cmake routines.