I'm curious about the use case. How is the version information used once passed in to cmake?
The correct approach would be for the pkga's cmake build system to obtain the version from pkgb.pc (pkg-config file) in its sysroot. Alex On Thu, 11 Jul 2024 at 11:40, tastyherring via lists.yoctoproject.org <tastyherring=gmail....@lists.yoctoproject.org> wrote: > > When writing a recipe I would like to get access to the meta data of the > dependencies, specifically there PV so I can then pass this info into this > build. > > >> pkga.bb > > ``` > > DEPENDS = "pkgb"; > > EXTRA_OECMAKE += "-DPKGB_REV=${PV:pn-pkgb}" > > ``` > > Is this possible? > > > > > > > >
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#63468): https://lists.yoctoproject.org/g/yocto/message/63468 Mute This Topic: https://lists.yoctoproject.org/mt/107159621/21656 Group Owner: yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-