Update CMake according to the library.