I have two packages each with a OpenWrt Makefile. Each of these packages are actually cmake projects so the Makefile includes cmake.mk and uses default package/xxxx/Compile stanza. The second package depends on the first. So I added the pkgA name to DEPENDS:=. This pkgA compiles just fine and the files get installed into build_dir but not staging_dir using:
make package/pkgA/compile make package/pkgA/install
The second package errors out of cmake because it cant find pkgA's include and lib file. The CMAKE_PREFIX_PATH is being set to the staging_dir instead of build_dir but after the package compile|install step above the files arent in staging_dir (not sure why), they are only in build_dir.
I've made a few OpenWRT packages and many cmake projects, but I can't figure out how to configure pkgB to properly find the dir for pkgA and this is new for me.
The actual path to the file it needs to find is:
Is there something in pkgA I need to do to get it to export it's interfaces or something, so then pkgB can find it?
suggestions or links to the proper page would be most welcome!