Build system best practices: have CMake download the source half of your dependencies, with an option to skip that, in which case it’s up to the user to provide said source. The end result: it’s all bundled together.
https://github.com/google/XNNPACK/blob/master/CMakeLists.txt#L90
👍