We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9388b3f + 079644c commit 56da414Copy full SHA for 56da414
src/cmake_generator.cpp
@@ -493,7 +493,7 @@ struct Generator {
493
throw std::runtime_error("Detected additional \" at the end of cmake block");
494
}
495
auto cmake_lf = tolf(cmake);
496
- while (cmake_lf.back() == '\n')
+ while (!cmake_lf.empty() && cmake_lf.back() == '\n')
497
cmake_lf.pop_back();
498
bool did_indent = false;
499
for (char ch : cmake_lf) {
0 commit comments