Simplify CMake script.