Skip to content

Conversation

@grisumbras
Copy link
Member

The targets used for config checks do not have a dependency on /boost/config//boost_config. This is not a problem when the files are used as a part of the actual Boost.Config project. But consider this use case:

  1. Boost.Config is installed on the user's machine, including its headers and b2 extension modules.
  2. A Jam project that represents /boost/config is generated for the user.
  3. A -config.jam file is generated for the user that points to the generated project via
    project-search /boost/config : path/to/boost/config/installation ;
    
  4. User's own jam files use Boost.Config's checks e.g.
    import-search /boost/config/checks ;
    import config ;
    
    lib mylib : mylib.cpp : [ config.requires cxx11_constexpr ] ;
    

In this case Boost.Config's build.jam is not used and so, the check targets cannot find the necessary headers.

This use case is how Conan package manager works. So, the change is aimed to provide support for modular build to Boost libraries using Conan.

@jzmaddock jzmaddock merged commit 25cbeb8 into boostorg:develop Sep 23, 2025
18 checks passed
@grisumbras grisumbras deleted the fix/modularization branch September 23, 2025 08:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants