Made the CMake script work.