Pope Pius XI
Quadragesimo Anno §115
Quadragesimo Anno: On Reconstruction of the Social Order
115 Such just demands and desire have nothing in them now which is inconsistent with Christian truth, and much less are they special to Socialism. Those who work solely toward such ends have, therefore, no reason to become socialists.
Source: Quadragesimo Anno (Vatican.va)