update the cmake scripts.