Cyanoacrylates don't work on glass. You need some sort of variant formula for that. In general silicon-based glues work perfectly on glasses. However, there's one technique of using this. You have to make sure that the glue fills up the gap between two glasses by pushing the air outside. Ultimately, the pieces will stay together because of the pressure outside.