]> code.ossystems Code Review - openembedded-core.git/commitdiff
cmake: Always put cmake package files in -dev packages
authorMike Crowe <mac@mcrowe.com>
Sat, 6 Jan 2018 20:08:58 +0000 (20:08 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 7 Jan 2018 12:28:30 +0000 (12:28 +0000)
Various recipes that inherit cmake contain FILES_${PN}-dev magic to add the
generated package files to their -dev packages. Since this is a standard
feature of cmake, we might as well teach cmake.bbclass to do this itself so
those recipes can be simpler.

Signed-off-by: Mike Crowe <mac@mcrowe.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/cmake.bbclass

index ac2c1519b02de28af39447217015b0ccb99d6c7c..a4079dab0d7b90046b77d582de60b7e6602a6fea 100644 (file)
@@ -34,6 +34,8 @@ EXTRA_OECMAKE_append = " ${PACKAGECONFIG_CONFARGS}"
 EXTRA_OECMAKE_BUILD_prepend_task-compile = "${PARALLEL_MAKE} "
 EXTRA_OECMAKE_BUILD_prepend_task-install = "${PARALLEL_MAKEINST} "
 
+FILES_${PN}-dev += "${libdir}/cmake ${datadir}/cmake"
+
 # CMake expects target architectures in the format of uname(2),
 # which do not always match TARGET_ARCH, so all the necessary
 # conversions should happen here.