BlondieBC
Banned
I guess something in World War 1 is notionally possible, but neither the Turks nor the allies would want to do so. Perhaps if it essentially became a critical stronghold for one side or the other and become "ground zero" of a battlefield. Even then, since neither side would likely be actively trying to destroy Mecca-proper the destruction wouldn't be total and someone would rebuild.
I had it happen in my WW1 TL. All you really need is for Gallipoli not to happen and for the Ottomans to be linked to Central Europe. After these two events happen, it becomes natural to try to interdict British shipping via air or U-boat or small surface boat. And then for the British to react.
Basically, once you have a rail from central Germany to Mecca, the temptation to send the smaller rail shippable U-boats or Airplanes becomes HUGE.