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:
parent
734d4af007
commit
7b603813d7
|
@ -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 += ";
|
||||
|
|
Loading…
Reference in New Issue