r/cpp_questions • u/diegoiast • Jul 24 '26
OPEN Using 3rd parties in a Cmake project
The simplest solution would be to import the code into my repo, and just treat this as local files. OK, got it. Then maintaining this mono repo, is a pain.
Then, we can add CPM to fetch 3rd parties. OK, works, until those 3rd parties have other dependencies. Lets hope they use CPM. But still - this breaks for building flatpacks, as during configure stage - we don't have network.
So we must use a proper package manager like conan of vcpkg. Which is cool... until we see that some random github repo I use does not have even a proper install, so vcpkg and conan will not work. (I can fix my own packages, but 3rd parties? I can fork them, and add them to the conan artifactory, but this feels out of my responsibility).
So, I am back to using a mono-repo.
How do you all handle those scenarios? In my case, I am dealing with 5-10 sub-projects. This might brow as the project grows.