Generally, baked goods should cool for about an hour at room temperature. All baked goods should be completely cooled for glazing, icing or frosting.  The glaze may run off if the cake is too warm.