CMake USE_SYSTEM_... setup broken, wrong variable scope
@Mizux is already working on this.
Since Jul 27, 2026.
Assessment
This issue has not been assessed yet.
Description
Any use of the USE_SYSTEM_{ABSEIL,PYBIND,PROTOBUF} will not work.
Using find_package(...) in a subdirectory scope via add_directory(...) will make any defined variables and targets available in this scope, but not in the toplevel scope as intended.
The correct way is to use include(...) instead of add_directory(...), as that will work in the callers scope.
- Dominant language
- C++
- Stars
- 67
- Forks
- 37
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from pybind/pybind11_protobuf
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
pybind/pybind11_protobuf#104 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 55/100
pybind/pybind11_protobuf#232 · 2 comments ·
-
bazel help wanted
Difficulty 4/5 3-5 days Newbie friendliness 35/100
pybind/pybind11_protobuf#192 · 4 comments ·
-
bug
pybind/pybind11_protobuf#184 · 3 comments · 2 reactions · 1 assignee ·
-
Tag a release? Open
pybind/pybind11_protobuf#181 · 4 comments · 1 assignee ·
All issues in pybind/pybind11_protobuf
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
-
Sensor initialization takes very long when `--initial-sim-time` is set to current UNIX timestamp Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
gazebosim/gz-sensors#662 · 1 comment ·
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
comp-datalake
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
ClickHouse/ClickHouse#121222 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
LadybirdBrowser/ladybird#12123 ·