Overlapping include-paths in a wrapped dependency #14135
Replies: 1 comment 1 reply
-
The error message comes from Headers aren't involved here. ... If the meson wrap is publicly available then it might be helpful for us to be able to test it live and see what may be going wrong. |
Beta Was this translation helpful? Give feedback.
-
Reproducible example: https://github.com/lhearachel/rapidyaml-meson
For one of my maintained projects, I'm writing a Meson patch for
biojppm/rapidyaml
, which usescmake
as its primary build-chain. I have written up the following minimalmeson.build
file as a patch to apply to a wrapped subproject (all paths replaced with wildcards for brevity only):I also have the following executable target:
However, when I attempt to build this executable,
ld
claims that it cannot find the definition for a function from within the library:Notably, this function should be in the lower of the two libraries (
c4core
, whichryml
has a dependency on). Some basic introspection with the LSP (as useful as that might be) suggests that headers fromc4core
are not being included in the possible include paths, but my understanding ofdep
objects is that they carry include directories along with them, as well as what libraries need to be linked against. Further, the code should be failing to compile into an object at all if the header could not be found.I did some sanity-checking, as well, to verify that the libraries are actually being built:
Am I missing something elementary?
Beta Was this translation helpful? Give feedback.
All reactions