Contrary to popular belief, the rate that solar wind strips Mars atmosphere is so ridiculously low that we can comfortably kick the problem of stopping it down the road a few hundred thousand years. If we manage to generate a habitable climate by terraforming with additional heat and atmosphere, adding a magnetic field becomes a very low priority.