Skip to content

Commit

Permalink
when parsing cmakelists; merge interrupted lines into one. Fixes tomt…
Browse files Browse the repository at this point in the history
  • Loading branch information
dascandy committed Oct 11, 2022
1 parent f7fba9a commit 3036c3a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Input.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,12 @@ static void ReadCmakelist(const Configuration& config, std::unordered_map<std::s
comp.recreate = true;
continue;
}
while (line.back() == '\\') {
line.pop_back();
std::string nextLine;
getline(in, nextLine);
line += nextLine;
}
if (line.size() > 0 && line[0] == '#') {
continue;
}
Expand Down

0 comments on commit 3036c3a

Please sign in to comment.