Most Helpful Guy
Honestly, that isn't really what I would call hitting on someone.
When you hit on someone, you make the comments personal; something that relates to a trait of theirs, whether it be physical or personal. For example, if you're sitting at a bar, and across the bar you see a woman, sitting with a couple of her friends, and you find her attractive, you might start to notice things about her that you like specifically. Say, for instance, she has an amazing smile; you might go up to her and open with "Sorry to intrude, but I couldn't help notice from across the bar what a beautiful smile you have." More than likely she'll thank you for the compliment, and that's your chance to tell her what your name is, get her name, and start to open a conversation with her.
The comment that you have written in your post sounds much more like general, polite conversation than anything else, and definitely won't let her know that you're interested in her unless you follow it up with actual come-ons like complimenting her as I've mentioned above. Don't get me wrong, that kind of general conversation is important when you first start talking to someone that you're interested in, but it's not, by definition, a way of hitting on someone.
I hope this has been of some help! :D