Simplify CMake code.