]> code.ossystems Code Review - openembedded-core.git/commit
cmake: Fully-qualified path to ar
authorDouglas Royds <douglas.royds@taitradio.com>
Wed, 17 Mar 2021 23:25:14 +0000 (12:25 +1300)
committerSteve Sakoman <steve@sakoman.com>
Wed, 24 Mar 2021 14:30:32 +0000 (04:30 -1000)
commit0b5d825ccb251bd6015dfcd49ed452b7bd64e6f6
treecb558268d55a34feede452e0a3d6220e624d6e4d
parentd75f95a09e5e85eb759e748f9e0fee1c5fa1b318
cmake: Fully-qualified path to ar

We (correctly enough) pass in our AR to cmake via the toolchain file,
but unlike the other cross-compilation tools (CC, CXX, ranlib, etc),
cmake does not then do its own search in the PATH for our AR.

By using cmake's own find_program() to search the PATH,
make works as expected from the commandline, outside of bitbake.

Signed-off-by: Douglas Royds <douglas.royds@taitradio.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit e9180c9575f0723b51915a0da58452511b6b03bf)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/classes/cmake.bbclass