It took four fire crews to bring the fire at the 30m (98ft) high, derelict building under control.