boostorg / boostorg/build

Can't have <library> and/or conditional requirements in a composed propagated feature.

Open
#667 1 comment 0 reactions 0 assignees View on GitHub
transition
Dominant language
C++
Stars
251
Forks
63
PR merge metrics
No merged PRs in 30d

Description

A possible [solution](https://stackoverflow.com/a/45428334/14396720) does not work. I got `error: expansions of composite features result in conflicting values`.

I want to conditionally use a library (with alternatives) for targets. I don't want to add conditions everywhere but prefer to create a propagated feature. However, I got `error: Recursion in main target references`. The question is also mentioned [here](https://stackoverflow.com/q/64613164/14396720).

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the composed propagated feature using the conditional requirements described in the issue and compare the conflicting-values and recursion errors. Read the linked Stack Overflow solution and question for the intended usage and investigate the B2 feature and target-requirement entry points. Done means a conditional library choice with alternatives can be expressed through a propagated feature without requiring conditions everywhere or triggering recursion.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
build-system
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.