Rationalized the CMake scripts.