Skip to content

Latest commit

 

History

History
executable file
·
51 lines (33 loc) · 5.52 KB

README.md

File metadata and controls

executable file
·
51 lines (33 loc) · 5.52 KB

FetchBoostContent

CMake FetchContent for Boost libraries

FetchBoostContent


  • CMake FetchContent enables build scripts to download and populate the current project with a dependency at configure time. This feature does not work with Boost (sub-)libraries because of transitive dependencies and the way their CMake script rely on the main Boost project.
  • The Boost libraries are widely useful and useful to most applications. A version of FetchContent that works for Boost libraries allows developers to (i) provide a fallback option when a Boost installation is not found locally, (ii) download only the required Boost (sub-)libraries required for a single project, (iii) experiment with single Boost libraries, and (iv) and facilitate cross-compiling with CMake.
  • A subset of these features can only be obtained nowadays via package managers, which represent a different level of CMake integration, and does not automatically extend these benefits to end users not using the same package manager. This is a problem for library developers relying on Boost, since most end users still don't rely on package managers.
  • This repository provides a version of FetchContent that works for Boost (sub-)libraries. When a library is populated, only its internal Boost dependencies are scanned and fetched. The functions are adapted to return or include all dependencies in their appropriate order without fetching the whole Boost super-project.

Build Status Latest Release Documentation Discussions


Facebook QZone Weibo Reddit Twitter LinkedIn WhatsApp Line.me Telegram.me HackerNews