[oe-commits] [openembedded-core] 01/07: cmake: Always put cmake package files in -dev packages

git at git.openembedded.org git at git.openembedded.org
Sun Jan 7 14:06:52 UTC 2018


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master
in repository openembedded-core.

commit d91dc4666683a96e9d03cbbd21b8a546f9069c93
Author: Mike Crowe <mac at mcrowe.com>
AuthorDate: Sat Jan 6 20:08:58 2018 +0000

    cmake: Always put cmake package files in -dev packages
    
    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 at mcrowe.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 meta/classes/cmake.bbclass | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta/classes/cmake.bbclass b/meta/classes/cmake.bbclass
index ac2c151..a4079da 100644
--- a/meta/classes/cmake.bbclass
+++ b/meta/classes/cmake.bbclass
@@ -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.

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list