diff --git a/web/src/lib/server/repos.ts b/web/src/lib/server/repos.ts index 59fd180..7378a4f 100644 --- a/web/src/lib/server/repos.ts +++ b/web/src/lib/server/repos.ts @@ -48,7 +48,7 @@ async function addProblemsCSharp(opts: OptsAddProblems) { async function addProblemsCPP(opts: OptsAddProblems) { let cmakeLists = templateCppCMakeLists; opts.contest.problems.forEach((problem) => { - cmakeLists += `add_executable(${problem.pascalName} ${problem.pascalName}/${problem.pascalName}.cpp)`; + cmakeLists += `add_executable(${problem.pascalName} ${problem.pascalName}/${problem.pascalName}.cpp)\n`; }); opts.fs.writeFileSync(join(opts.dir, 'CMakeLists.txt'), cmakeLists);