Fix CMakeLists.txt to keep compatibility with CMake 3.10.2