Fixed error in generating CMakeLists.txt