diff options
author | Mike Crowe <mac@mcrowe.com> | 2018-01-06 20:08:58 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-01-07 14:05:38 +0000 |
commit | 7389cb451caf74485aee89dc0a6174c68af0de74 (patch) | |
tree | 991d16340507a5c836b9cf1f25c50bf6e3b4e2b5 | |
parent | 1103a03742b89af8b43feeb8ae3580feeb4f8d83 (diff) | |
download | poky-7389cb451caf74485aee89dc0a6174c68af0de74.tar.gz |
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.
(From OE-Core rev: d91dc4666683a96e9d03cbbd21b8a546f9069c93)
Signed-off-by: Mike Crowe <mac@mcrowe.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/classes/cmake.bbclass | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/classes/cmake.bbclass b/meta/classes/cmake.bbclass index ac2c1519b0..a4079dab0d 100644 --- a/meta/classes/cmake.bbclass +++ b/meta/classes/cmake.bbclass | |||
@@ -34,6 +34,8 @@ EXTRA_OECMAKE_append = " ${PACKAGECONFIG_CONFARGS}" | |||
34 | EXTRA_OECMAKE_BUILD_prepend_task-compile = "${PARALLEL_MAKE} " | 34 | EXTRA_OECMAKE_BUILD_prepend_task-compile = "${PARALLEL_MAKE} " |
35 | EXTRA_OECMAKE_BUILD_prepend_task-install = "${PARALLEL_MAKEINST} " | 35 | EXTRA_OECMAKE_BUILD_prepend_task-install = "${PARALLEL_MAKEINST} " |
36 | 36 | ||
37 | FILES_${PN}-dev += "${libdir}/cmake ${datadir}/cmake" | ||
38 | |||
37 | # CMake expects target architectures in the format of uname(2), | 39 | # CMake expects target architectures in the format of uname(2), |
38 | # which do not always match TARGET_ARCH, so all the necessary | 40 | # which do not always match TARGET_ARCH, so all the necessary |
39 | # conversions should happen here. | 41 | # conversions should happen here. |