cmGlobalNinjaGenerator: Clarify order of codegen build statement logic

Make it more consistent with the equivalent logic for "all".
1 file changed