Skip to content

Commit c245a80

Browse files
jll63claude
andcommitted
build.jam: fix b2 install so cmake config is generated for openmethod
Two problems prevented `b2 install` from producing `lib/cmake/boost_openmethod-<version>/boost_openmethod-config.cmake`, breaking downstream consumers that use `find_package(Boost CONFIG REQUIRED COMPONENTS openmethod)` (and the unified-cmake CI job): 1. The `boost_openmethod` alias used `usage-requirements` as a literal source name instead of the 5th argument position, and lived outside the `explicit` block. Move it inside `explicit` and put `<include>include <library>$(boost_dependencies)` in the usage-requirements slot, matching `assert`, `core`, `mp11`, `preprocessor`, etc. 2. The `call-if : boost-library openmethod` invocation had no `install` option, so the Jamroot fallback path declared empty install targets and `install-cmake-config` was called with no library names — no config files were generated. Add `: install boost_openmethod` so the library name reaches `install-or-stage-cmake-config`. Verified locally on Windows: `b2 install` now produces `lib/cmake/boost_openmethod-1.92.0/boost_openmethod-config.cmake` (and the matching `-config-version.cmake`) defining `Boost::openmethod`. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
1 parent 3632b00 commit c245a80

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

build.jam

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ 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

26-
call-if : boost-library openmethod ;
23+
call-if
24+
: boost-library openmethod
25+
: install boost_openmethod
26+
;

0 commit comments

Comments
 (0)