This is one of the reasons for the popularity of the common micing technique of placing a cardioid mic about mid-neck and aiming it at the 12th fret. It tends to pick up less finger-squeak.
Fresh strings help, always a good idea anyway when recording acoustic guitar because you want to start out bright - you can always take bright out but you can't put it in. If you start with a nice bright tone you can then treat squeaks the same way you treat ess-y vocals, using a multiband compressor.
You can also use a spray lubricant like Finger-Ease. That'll help, too, although some swear it's evil. When I used it regularly it seemed to cause strings to go dead out faster.
Ultimately, you gotta accept that 1) it's part of the performance and you wouldn't want to completely eliminate it anyway, and 2) the only way to really stop it is by improved playing technique.
(I never mastered that technique of precisely lifting and setting the fingers, but then I've never pretended to be a guitarist. Except when faking it with keyboards - come to think of it, I have synth patches for acoustic guitar that include finger squeaks, so there you go!)