This is a weed of roadsides and more generally wasteland. I photographed this specimen near Obrenovac on August 9, 2009. It is native to Europe, North Africa, and west Asia. It has become naturalized in the US and Canada after being introduced in seed crops in the 1800’s.
It belongs to the Carnation Family of flowers.