diff mbox series

[meta-oe,1/2] opencl-headers: Install development files

Message ID 20250329040445.2340565-1-pkj@axis.com
State Accepted
Headers show
Series [meta-oe,1/2] opencl-headers: Install development files | expand

Commit Message

Peter Kjellerstedt March 29, 2025, 4:04 a.m. UTC
This installs cmake and pkgconfig files so that other recipes can find
the header files.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
---
 .../recipes-core/opencl/opencl-headers_2024.05.08.bb   | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)
diff mbox series

Patch

diff --git a/meta-oe/recipes-core/opencl/opencl-headers_2024.05.08.bb b/meta-oe/recipes-core/opencl/opencl-headers_2024.05.08.bb
index 01e83c812c..8663b818e3 100644
--- a/meta-oe/recipes-core/opencl/opencl-headers_2024.05.08.bb
+++ b/meta-oe/recipes-core/opencl/opencl-headers_2024.05.08.bb
@@ -8,12 +8,10 @@  S = "${WORKDIR}/git"
 SRCREV = "8275634cf9ec31b6484c2e6be756237cb583999d"
 SRC_URI = "git://github.com/KhronosGroup/OpenCL-Headers.git;branch=main;protocol=https"
 
-do_configure[noexec] = "1"
-do_compile[noexec] = "1"
+inherit cmake
+
+EXTRA_OECMAKE = "-DBUILD_TESTING=OFF"
+
 ALLOW_EMPTY:${PN} = "1"
 
-do_install () {
-	install -d ${D}${includedir}/CL/
-	install -m 0644 ${S}/CL/*.h ${D}${includedir}/CL
-}
 BBCLASSEXTEND = "native nativesdk"