First, only pour on the glaze when the cake is completely cool, that way the icing doesn’t melt. Second, use a glaze that uses a bit of butter and/or heavy cream. The extra fat content helps hold the glaze together so it holds a nice layer instead of dissolving into the cake.