I think more importantly: civilisation on Mars is a pipe dream without figuring out a significant motivation to live on Mars.
Mars is an inhospitable place, but technology allows us to live in inhospitable places.
In many ways, I expect Mars is like Antarctica. Once the initial romanticism of pioneering fades, it will have only very niche attractiveness for specific scientific causes. It used to be a popular idea that technological advancement would see us populating Antarctica and underground / undersea environments, yet despite that being possible with modern technology (e.g. nuclear powered greenhouses), we've not justified the endeavour.
Antarctica's lack of a population and its niche attractiveness has more to do with the fact that all the countries with any sort of territorial claim to it have signed treaties substantially restricting any use of Antarctic resources (including the land thereof) for anything other than science.
On that note, though, if we want to learn how to colonize the Moon and Mars and beyond, Antarctica is closer to home and less extreme; it could be a valuable place for "baby step" colony proofs-of-concept.
I guess that depends on what end effect of the magnetic field we are trying to replicate.
If it's protection from radiation, then we have multiple avenues of research and action. We can use particular materials in our domed cities, we can build underground, and we could bioengineer plants and ourselves to better cope with radiation damage. We could even create a huge solar array or nuclear reactor in space and create enough of a magnetic field to deflect solar and extrasolar radiation. It's a difficult problem, for sure, but not an impossible one.
If it's depletion of the Martian atmosphere, then once we've added a whole bunch of material to it, the depletion happens over millions of years. So there's not a huge effect even in the 1000s of years timescale.
The idea of terraforming Mars seems increasingly quaint given how hard it's been for us to keep the Earth comfortable for humans.
I think it makes far more sense to work on geo-engineering solutions to climate change first - it's also more likely to have a viable business model, on the assumption that the people will eventually demand action rather than applaud their leaders for pulling out of the Paris Accord.
I think pretty much all of the tech applicable to terraforming Mars could also be useful for reducing Earth's CO2 levels, no? Maybe let the problems on Earth guide development and drive funding, and pivot to Mars once it's clear success is being had on Earth.
https://caseyhandmer.wordpress.com/2019/10/20/omg-space-is-f...