Commit fbb1a68
committed
st: fix reflectcpp consumer configure - find jansson for the Avro backend
CI (Lint and unit-test jobs) failed at CMake generate time with:
The link interface of target "reflectcpp::reflectcpp" contains:
jansson::jansson
but the target was not found.
With the avro feature on, reflect-cpp links the static avro-c archive,
whose link interface carries jansson::jansson - but the upstream
reflectcpp-config.cmake has no Avro find_dependency block, so the target is
never defined in the consumer. The local macOS build didn't catch it
because the only local consumer (StExamples) is an OBJECT library, which
never links and so never triggers CMake's imported-target validation; a
minimal linking-consumer reproduction fails identically to CI.
Patch the installed config from the overlay portfile (gated on the avro
feature) to find_dependency(jansson CONFIG) before including the exports,
and bump the overlay to port-version 2 since the previously pushed content
changed.
Verified: the linking-consumer repro configures and links; the full local
build and 83/83 pulsar-st-tests stay green.
Signed-off-by: Matteo Merli <mmerli@apache.org>1 parent 7bc64b9 commit fbb1a68
2 files changed
Lines changed: 11 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
48 | 58 | | |
49 | 59 | | |
50 | 60 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
0 commit comments