CW answer from the comment by Felipe Voloch:

> For smooth projective complex varieties, this is the same as the Picard variety (or equivalently the Albanese) is zero, almost by definition. As the dimension of the Picard variety is the first Betti number, here is your criterion: $b_1=0$. —  Felipe Voloch Dec 9 at 20:43