]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
cmake.bbclass: use --install
authorAdrian Freihofer <adrian.freihofer@gmail.com>
Mon, 22 Jan 2024 13:58:19 +0000 (14:58 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 2 Feb 2024 10:36:53 +0000 (10:36 +0000)
commit72388593d62d45d54790710b9665eb8f13897c8c
tree4e8026f22aafe140824c40d38901a0ee21a60123
parent705d2972b38efc9f331e3635c07ca92f8812b365
cmake.bbclass: use --install

Since version 3.15 CMake provides a command-line signature to install an
already-generated project binary tree. This may be used after building a
project to run installation without using the generated build system or
the native build tool.

This is a small improvement, for regular bitbake calls. CMake does not
check the dependencies again which is expected to be faster.

The main motivation for this change is using CMake from an SDK context.
With this change it is possible to initiate the compile step from an
IDE and later on initiating the install step via bitbake which runs the
install step on pseudo.

This is also what the meson.bbclass already does with the --no-rebuild
option.

Signed-off-by: Adrian Freihofer <adrian.freihofer@siemens.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes-recipe/cmake.bbclass