Fix a warning in cmake.