summaryrefslogtreecommitdiffstats
path: root/meta/classes-recipe/cmake.bbclass
Commit message (Collapse)AuthorAgeFilesLines
* cmake.bbclass: fix allarch override syntaxChen Qi2023-09-201-4/+4
| | | | | | | | | | | | The override syntax should be ":allarch" instead of "_allarch". (From OE-Core rev: 72d3ecb22fea59d2520997b3f0a0651557d69ae7) Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit bea74c9942a3bb4f71aca0f722b4a7306ae52fb4) Signed-off-by: Steve Sakoman <steve@sakoman.com>
* cmake.bbclass: do not search host paths for find_program()Chen Qi2023-06-211-1/+0
| | | | | | | | | | | | | | | | | | | | | | | OECMAKE_FIND_ROOT_PATH_MODE_PROGRAM[1] controls the search behavior of find_program(). When this variable's value was first used in OE, it was deliberately set to BOTH to allow searching of host tools. This is to ensure the necessary tools from host could be used. The downside is that the configure behavior may differ on different host environments. Later, this cmake.bbclass was added the ability to search tools under the HOSTTOOLS_DIR. This means we no longer needs cmake to search the host paths. So we remove the class-native setting of BOTH. [1] https://cmake.org/cmake/help/latest/variable/CMAKE_FIND_ROOT_PATH_MODE_PROGRAM.html (From OE-Core rev: 1e2866eb0ce0c10a2668fbd66bc28526eec30f4d) Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit f4ea12f6635125ee793f4dd801c538c0186f9dc3) Signed-off-by: Steve Sakoman <steve@sakoman.com>
* classes: Update classes to match new bitbake class scope functionalityRichard Purdie2022-08-121-0/+223
Move classes to classes-global or classes-recipe as appropriate to take advantage of new bitbake functionality to check class scope/usage. (From OE-Core rev: f5c128008365e141082c129417eb72d2751e8045) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>