When we were preparing for chickens, I was a bit concerned about this. Our neighbor puts some food out for a cat (or two) that otherwise acts feral. They regularly prowl the perimeter of our field looking for mice, etc. (which I appreciate). The current one has a litter under one of their outbuildings, but historically, they have all stayed away from humans.
I see the current one walking by on the coop trail cam at night and wandering around throughout the day. It pays no attention to the chickens, and they aren't alarmed at the sight or proximity of it.
An adequate food supply that doesn't include my chickens may be the answer, and a hungrier cat may choose differently, just relaying my experience.