Hi Alex, I'd like to include the version info of the dependency when printing the version info of the consuming application and was hoping yocto might store this meta data in one of its variables, since it should already know the PV of the dependency.
As you suggest, I could have the dependent package write its version info to a file, that it then installs, then have the consuming project read said file; call this a cmake config file or pkg-config file, if yocto provide no direct method of sharing this data... which I think is what your confirming for me. Adam On Thu, Jul 11, 2024 at 9:51 PM Alexander Kanavin <alex.kana...@gmail.com> wrote: > 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 (#63476): https://lists.yoctoproject.org/g/yocto/message/63476 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] -=-=-=-=-=-=-=-=-=-=-=-