-
Book Overview & Buying
-
Table Of Contents
Software Architecture with C++ - Second Edition
By :
In the previous chapter, we briefly touched on package managers, noting that they can simplify dependency management and ensure consistency across environments. In this chapter, we will explore them in more detail, with a focus on Conan, a package manager dedicated to C and C++. Conan is feature-rich, integrates smoothly with CMake, and supports multiple platforms and compilers, making it worthy of detailed consideration.
The application of package management is a widely adopted practice because the compilation and installation of programs from source code on a target system may quickly lead to version conflicts or even the inability to update the system without breaking the applications. Packages help resolve these issues as they bundle source code, binaries, scripts, settings, and documentation, along with versioning requirements.
Package managers make life easier, especially compared to installing project dependencies manually. However, while CMake scripts...