]> 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)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 20 Mar 2021 18:50:05 +0000 (18:50 +0000)
commite9180c9575f0723b51915a0da58452511b6b03bf
treef728ef8f3871494ac54fd1fc76e4f3e5ce1b5d2e
parent8076815fc2ffc8f632e73527ce2b7d158a29e9ea
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>
meta/classes/cmake.bbclass