I am about to apply to Computer Science PhD programs to start Fall 2018. In the process of researching programs I have met with many Profs in fields I was interested in to (a) learn more about their research/fields (b) see if they were likely to be taking PhD students in the Fall. Having done this I now have a better idea of what I am interested in. As such, I've decided not to apply to one of the universities of one of the Professors I met, as I don't think it's the research area I'm most interested in (even though he is very distinguished in his field and at a prestigious university).
Even still, the area the Professor works in has some overlap with the area I plan to do my PhD in. So even though I don't want to apply to work under him, I will likely run into him again. And if an appropriate topic came up, it would be interesting to collaborate with him at some point on the future.
So I'm wondering what is a sensible, professionally-appropriate way of sending him an email to say that I'm not applying to the program at that university because I've decided it's not the research area I'm most interested in, but I would like to stay in contact? Partly, I feel like it would be kind of awkward to run into him one day and have him think, "Oh yes... you're the guy who said he was interested in applying to work with us and then we never heard from again."