Pope Leo has warned that the future of humanity is at stake amid wars around the globe.