dmake: Apply small fix from Dan.

This fixes the potential (but not likely to happen) case when
file list is empty. Dan suggested this change when reviewing my
earlier patch.
This commit is contained in:
Kimmo Varis 2012-06-11 22:09:09 +03:00
parent 734d4af007
commit 7b603813d7
1 changed files with 1 additions and 1 deletions

View File

@ -177,7 +177,7 @@ int main(int argc, char **argv)
continue; // shouldn't happen
fname.erase(fname.find(".cpp"));
fout1 << std::string(11, ' ') << "$${BASEPATH}" << fname << ".h";
if (i < libfiles.size() - 1)
if (i + 1 < testfiles.size())
fout1 << " \\\n";
}
fout1 << "\n\nSOURCES += ";