| Message ID | 20260206073208.340688-3-frederikbraendstrup@gmail.com |
|---|---|
| State | Under Review |
| Headers | show |
| Series | include glaze cmake files | expand |
diff --git a/meta-oe/recipes-support/glaze/glaze_7.0.1.bb b/meta-oe/recipes-support/glaze/glaze_7.0.1.bb index e481290b9c..42be0a8bca 100644 --- a/meta-oe/recipes-support/glaze/glaze_7.0.1.bb +++ b/meta-oe/recipes-support/glaze/glaze_7.0.1.bb @@ -17,6 +17,8 @@ do_install:append() { rmdir -p --ignore-fail-on-non-empty ${D}${datadir}/${BPN} } +FILES:${PN}-dev += "${datadir}/cmake/${BPN}/*.cmake" + # Glaze is a header-only C++ library, so the main package will be empty. ALLOW_EMPTY:${PN} = "1"
The cmake files should be included in the glaze-dev package. Without this patch, an application using the following find_package(glaze) target_link_libraries(myprogram PUBLIC glaze::glaze) Would fail with the following error (with tmpdir redacted) CMake Error in deps/vesl/src/Platform/CMakeLists.txt: Imported target "glaze::glaze" includes non-existent path "$TMPDIR/recipe-sysroot/usr/share/include" in its INTERFACE_INCLUDE_DIRECTORIES. Possible reasons include: * The path was deleted, renamed, or moved to another location. * An install or uninstall procedure did not complete successfully. * The installation package was faulty and references files it does not provide. Signed-off-by: Frede Hoey Braendstrup <frederikbraendstrup@gmail.com> --- meta-oe/recipes-support/glaze/glaze_7.0.1.bb | 2 ++ 1 file changed, 2 insertions(+) --