cmLocalGenerator: Move flag determination up in the function

This content is independent of any targets.
1 job for extract-cmLinkLineComputer
Status Name Job ID Coverage
  External
passed kwrobot-commit-check