diff --git a/src/cmkrlib/gen.cpp b/src/cmkrlib/gen.cpp index a9c7f46..23b6c23 100644 --- a/src/cmkrlib/gen.cpp +++ b/src/cmkrlib/gen.cpp @@ -330,6 +330,9 @@ int generate_cmake(const char *path, bool root) { }; auto inject_cmake = [&ss, &tolf](const std::string &cmake) { if (!cmake.empty()) { + if (cmake.back() == '\"') { + throw std::runtime_error("Detected additional \" at the end of cmake block"); + } ss << tolf(cmake) << "\n\n"; } };