Repository navigation
fix cmake: fix CPM Boost with CMake 4.5 and link used Boost libraries - #1407
Closed
ArkadyRudenko wants to merge 5 commits into
Closed
ArkadyRudenko wants to merge 5 commits into
ArkadyRudenko wants to merge 5 commits into
Conversation
Contributor
Author
|
LGTM |
|
Many thanks for the PR! @ArkadyRudenko is now importing your pull request into our internal upstream repository. |
Contributor
Author
|
LGTM |
|
Many thanks for the PR! @ArkadyRudenko is now importing your pull request into our internal upstream repository. |
|
✅ This pull request is being closed because it has been successfully merged into our internal monorepository. |
robot-piglet
pushed a commit
that referenced
this pull request
Nov 27, 2026
Fixes the `ubuntu (CPM)` job. - CMake 4.5 (current GitHub ubuntu runner image) rejects Boost.Locale 1.89 `source_group(TREE)`: `".../include/boost/locale" is not a prefix of file ".../include/boost/locale.hpp"`. Backport the upstream fix (boostorg/locale#274, commits 1d07074 and f51b58c) via CPM `PATCHES`; no Boost release contains it yet. - With CPM every Boost library has its own include dir, so targets must link what they include: `Boost::exception` (core/src/components/run.cpp), `Boost::algorithm` (core sources and core/utest, chaotic-openapi), `Boost::smart_ptr` (universal/include/userver/utils/make_intrusive_ptr.hpp and core public engine headers). Supersedes #1399. --- Pull Request resolved: #1407 Co-authored-by: arudenko02 <[email protected]> Co-authored-by: arudenko02 <[email protected]> commit_hash:f256104aa5898b80f45aa4451c57e40a6e562f35
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes the
ubuntu (CPM)job.source_group(TREE):".../include/boost/locale" is not a prefix of file ".../include/boost/locale.hpp". Backport the upstream fix (cmake: exclude locale.hpp from source_group tree boostorg/locale#273, commits 1d07074 and f51b58c) via CPMPATCHES; no Boost release contains it yet.Boost::exception(core/src/components/run.cpp),Boost::algorithm(core sources and core/utest, chaotic-openapi).Supersedes #1399.