Skip to content

[boost] Move to CMake #32274

@Neumann-A

Description

@Neumann-A

Is your feature request related to a problem? Please describe.

Is your feature request related to a problem?

Not really. just following the maintainer guides to prefer CMake over all else. and the current b2 hacks vcpkg uses generate problems. CMake is easier to maintain from a vcpkg perspective since more people know how to use it correctly.

Proposed solution

Currently boost only provides a monolithic build system which is either b2 or cmake. vcpkg currently hacks something together with b2 rules. I propose to hack something together with CMake instead since boost will then provide cmake config files which are better and easier to consume then using cmakes FindBoost.
The main problems:

  • cmake build is monolithic, superporject build
  • sublibs have no install rules
  • sublibs do not generate a config
  • sublibs do not have find_package calls.

However:

As such vcpkg should probably switch to using CMake for boost in the future.

Describe alternatives you've considered

Stay with b2 and fight stuff like #27694 (not really and option ;))

Additional context

No response

### Tasks
- [ ] https://github.com/microsoft/vcpkg/pull/32309

Metadata

Metadata

Labels

category:port-featureThe issue is with a library, which is requesting new capabilities that didn’t exist

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions