cmCustomCommandGenerator: Fix GetInternalDepfile on moved instance

Previously the constructor captured `this` in a lambda used by the
`GetInternalDepfile` method, but the pointer is invalidated when the
instance moves.
2 files changed