cmNinjaTargetGenerator: avoid traversing old outputs repeatedly

We actually only need to look at outputs just added to the vector, not
all outputs that have been detected so far.
1 file changed