glaze: use default install for cmake files
PATCH 1/1 glaze: use default install for cmake files
CMake correctly installs glaze in a location that cmake can find via find_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.
--- meta-oe/recipes-support/glaze/glaze_7.0.1.bb | 7 ------- 1 file changed, 7 deletions(-)
meta-oe/recipes-support/glaze/glaze_7.0.1.bb +0 -7
@@ -11,13 +11,6 @@ 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} -} - -# Glaze is a header-only C++ library, so the main package will be empty. ALLOW_EMPTY:${PN} = "1" BBCLASSEXTEND = "native"
Quoted 39 lines
-----Original Message-----
From: [email protected] <[email protected]> On Behalf Of Frederik Brændstrup via lists.openembedded.org
Sent: den 4 februari 2026 20:52
To: [email protected]
Cc: Frede Hoey Braendstrup <[email protected]>
Subject: [oe] [meta-oe][PATCH v1] glaze: use default install for cmake filesCMake correctly installs glaze in a location that cmake can find via
find_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 <[email protected]>--- meta-oe/recipes-support/glaze/glaze_7.0.1.bb | 7 ------- 1 file changed, 7 deletions(-)meta-oe/recipes-support/glaze/glaze_7.0.1.bb +0
-0
meta-oe/recipes-support/glaze/glaze_7.0.1.bb inherit cmake · line 19
Quoted 9 lines
meta-oe/recipes-support/glaze/glaze_7.0.1.bb +0
-6@@ -11,13 +11,6 @@ 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} -} -
To make the cmake files continue to go in the ${PN}-dev package where they belong, you need to add:
FILES:${PN}-dev += "${datadir}/${BPN}/*.cmake"
meta-oe/recipes-support/glaze/glaze_7.0.1.bb inherit cmake · line 20
Quoted 1 line
meta-oe/recipes-support/glaze/glaze_7.0.1.bb +0
-1-# Glaze is a header-only C++ library, so the main package will be empty.
This comment is still valid (once FILES:${PN}-dev has been added above).
meta-oe/recipes-support/glaze/glaze_7.0.1.bb inherit cmake
Quoted 4 lines
meta-oe/recipes-support/glaze/glaze_7.0.1.bb +0
-1ALLOW_EMPTY:${PN} = "1" BBCLASSEXTEND = "native" --
//Peter
v2 cover include glaze cmake files
v1 moved cmake files to where glaze originally installs cmake files (/usr/share/glaze/*.cmake)
v2 reverts v1 and adds the cmake files to FILES:${PN}-dev
Thanks to Peter Kjellerstedt for his insights here
Frede Hoey Braendstrup (1):
glaze: include cmake files in glaze-dev package
meta-oe/recipes-support/glaze/glaze_7.0.1.bb | 2 ++ 1 file changed, 2 insertions(+)
PATCH v2 1/1 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.
--- meta-oe/recipes-support/glaze/glaze_7.0.1.bb | 2 ++ 1 file changed, 2 insertions(+)
meta-oe/recipes-support/glaze/glaze_7.0.1.bb +2 -0
@@ -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"
v3 cover include glaze cmake files
In reply to Frede Hoey Braendstrupv1 moved cmake files to where glaze originally installs cmake files (/usr/share/glaze/*.cmake)
v2 reverts v1 and adds the cmake files to FILES:${PN}-dev
v3 reverts v2, going back to v1 and adds cmake files to FILES:${PN}-dev
Thanks to Peter Kjellerstedt for his insights here
Frede Hoey Braendstrup (1):
glaze: include cmake files in glaze-dev package
meta-oe/recipes-support/glaze/glaze_7.0.1.bb | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-)
PATCH v3 1/1 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.
--- meta-oe/recipes-support/glaze/glaze_7.0.1.bb | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-)
meta-oe/recipes-support/glaze/glaze_7.0.1.bb +1 -5
@@ -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"
Signature · 1 line
2.52.0