cmComputeTargetDepends: Add missing nullptr check

Check the result of `GetLinkImplementation` before using it.
1 file changed