Fix a CMake error when using CMake 3.0.1