Well, in 1846, the pope wrote (? Bull, encyclical) explaining communism and in 1847 my relatives left Bavaria. Also, Cardinal Manning has writings (
www.archive.org/stream/ and Pope Leo XIII and Pius X had plenty to say.
I have a book, Church and State in Czechoslovakia. Very good reading, if you can find a copy. Also "The Mouth of the Lion" communism take over of Church in the 80's.
Cardinal Manning was in the thinking, that Holy Mother Church, will go to the Crucifix just as Christ did and we know what happens next.