cmLocalGenerator: Move flag determination up in the function

This content is independent of any targets.
1 job for extract-cmLinkLineComputer