diff options
| author | Frede Hoey Braendstrup <frederikbraendstrup@gmail.com> | 2026-02-06 09:36:03 +0100 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2026-02-06 10:06:27 -0800 |
| commit | 6be7812f7c4194b18e9ae5875832dd2cad801bce (patch) | |
| tree | 0a9411c13c1d3a5f7cde15361c3036b5d0963415 | |
| parent | 8a0162969ce3e9256d033694b8a99b5903ab3d7d (diff) | |
| download | meta-openembedded-6be7812f7c4194b18e9ae5875832dd2cad801bce.tar.gz | |
glaze: include cmake files in glaze-dev package
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>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
| -rw-r--r-- | meta-oe/recipes-support/glaze/glaze_7.0.1.bb | 6 |
1 files changed, 1 insertions, 5 deletions
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..235335b471 100644 --- a/meta-oe/recipes-support/glaze/glaze_7.0.1.bb +++ b/meta-oe/recipes-support/glaze/glaze_7.0.1.bb | |||
| @@ -11,11 +11,7 @@ inherit cmake | |||
| 11 | 11 | ||
| 12 | EXTRA_OECMAKE = "-Dglaze_BUILD_EXAMPLES=OFF -DBUILD_TESTING=OFF -Dglaze_ENABLE_FUZZING=OFF -Dglaze_DEVELOPER_MODE=OFF" | 12 | EXTRA_OECMAKE = "-Dglaze_BUILD_EXAMPLES=OFF -DBUILD_TESTING=OFF -Dglaze_ENABLE_FUZZING=OFF -Dglaze_DEVELOPER_MODE=OFF" |
| 13 | 13 | ||
| 14 | do_install:append() { | 14 | FILES:${PN}-dev += "${datadir}/${BPN}/*.cmake" |
| 15 | install -d ${D}${datadir}/cmake/${BPN} | ||
| 16 | mv -f ${D}${datadir}/${BPN}/*.cmake ${D}${datadir}/cmake/${BPN} | ||
| 17 | rmdir -p --ignore-fail-on-non-empty ${D}${datadir}/${BPN} | ||
| 18 | } | ||
| 19 | 15 | ||
| 20 | # Glaze is a header-only C++ library, so the main package will be empty. | 16 | # Glaze is a header-only C++ library, so the main package will be empty. |
| 21 | ALLOW_EMPTY:${PN} = "1" | 17 | ALLOW_EMPTY:${PN} = "1" |
