Updated CMakeLists.txt to match new CMake version.