How to disable tracking module while building OpenCV?

i doubt, that this exists
(but there seems to be a version mismatch between your main and the contrib opencv repo)