cmComputeLinkInformation: compute link info for module-using targets

Targets which contain C++ module or Fortran sources need to participate
in link information unconditionally regardless of whether they actually
have link artifacts or not.

Fixes: #25223
1 file changed