Clean up dead code in cmake.