cmGlobalGenerator: Constify GetTargetDirectDepends

It should only be called for targets whose dependencies are already
computed.
2 files changed