mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-04-20 11:38:34 +00:00
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>
This commit is contained in:
committed by
Khem Raj
parent
8a0162969c
commit
6be7812f7c
@@ -11,11 +11,7 @@ inherit cmake
|
||||
|
||||
EXTRA_OECMAKE = "-Dglaze_BUILD_EXAMPLES=OFF -DBUILD_TESTING=OFF -Dglaze_ENABLE_FUZZING=OFF -Dglaze_DEVELOPER_MODE=OFF"
|
||||
|
||||
do_install:append() {
|
||||
install -d ${D}${datadir}/cmake/${BPN}
|
||||
mv -f ${D}${datadir}/${BPN}/*.cmake ${D}${datadir}/cmake/${BPN}
|
||||
rmdir -p --ignore-fail-on-non-empty ${D}${datadir}/${BPN}
|
||||
}
|
||||
FILES:${PN}-dev += "${datadir}/${BPN}/*.cmake"
|
||||
|
||||
# Glaze is a header-only C++ library, so the main package will be empty.
|
||||
ALLOW_EMPTY:${PN} = "1"
|
||||
|
||||
Reference in New Issue
Block a user