cmake: Improve error message when failing to update generation timestamp
Include the underlying system error description.
Issue: #21571 (closed), #22086
Edited by Brad King
Include the underlying system error description.
Issue: #21571 (closed), #22086