Happens quite often with large c++ projects and some quirky includes. Change 1 header, recompile whole thing.
For comparison, rebuilding linux kernel with make defconfig takes about 3-4 minutes tops on my laptop, rebuilding one of the work projects - at least 15.