Skip to content

Commit bd07802

Browse files
jll63claude
andcommitted
build.jam: fix malformed alias so b2 install generates cmake config
The alias used `usage-requirements` as a literal source name instead of the dedicated 5th argument position, and lived outside the `explicit` block. As a result `boost-library openmethod` could not detect the library's interface and `b2 install` skipped the cmake config files. Downstream consumers calling `find_package(Boost CONFIG REQUIRED COMPONENTS openmethod)` against a b2-installed Boost (e.g. the unified-cmake CI job) then failed with: Could not find a package configuration file provided by "boost_openmethod" (requested version 1.92.0) Move the alias inside `explicit` and put `<include>include <library>$(boost_dependencies)` in the usage-requirements slot, matching the pattern used by every other header-only Boost library (assert, core, describe, mp11, preprocessor, ...). Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
1 parent 3632b00 commit bd07802

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

build.jam

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,9 @@ constant boost_dependencies
1515

1616
project /boost/openmethod ;
1717

18-
alias boost_openmethod
19-
: usage-requirements
20-
<include>include
21-
<library>$(boost_dependencies)
18+
explicit
19+
[ alias boost_openmethod : : : : <include>include <library>$(boost_dependencies) ]
20+
[ alias all : boost_openmethod test ]
2221
;
23-
alias all : boost_openmethod test ;
24-
explicit all ;
2522

2623
call-if : boost-library openmethod ;

0 commit comments

Comments
 (0)