-
Book Overview & Buying
-
Table Of Contents
Software Architecture with C++ - Second Edition
By :
There are several ways for you to fetch the external projects you depend on. For instance, you could add them as a Conan dependency, use CMake’s find_package to look for a version provided by the OS or installed in another way, or fetch and compile the dependency yourself. The Conan package manager is described in the next chapter.
The key message of this section is: if you can, you should use a package manager. This way, you’ll end up using one version of the dependency that matches your project’s and its dependencies’ requirements. Other well-known C++ package managers are vcpkg, Hunter, CPM, xrepo, Spack, and lesser-known ones are Buckaroo, Biicode, CGet, Teaport, and C++ Archive Network.
If you’re aiming to support multiple platforms, or even multiple versions of the same distribution, using a package manager such as Conan or compiling everything yourself is the way to go. This way, you’ll use the same dependency...