Fix a CMake 3.1 policy violation warning in CMakeLists.txt.