It should cool completely before adding any glaze/icing. The time to cool will vary on the size and height of the cake, but this can take a good 2-3 hours in some cases.