diff options
author | Michael Ho <Michael.Ho@bmw.de> | 2019-08-14 17:05:15 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-10-23 16:21:42 +0100 |
commit | 7847f431cd8db59fce8c9401a603c4b0678ee16d (patch) | |
tree | 2573cdffcfdf8a7504e335fbe5ea4765473bd8a7 /meta/recipes-core/ell | |
parent | e44923a61d1631439ec22faf1610989f82544027 (diff) | |
download | openembedded-core-contrib-7847f431cd8db59fce8c9401a603c4b0678ee16d.tar.gz |
cmake.bbclass: add HOSTTOOLS_DIR to CMAKE_FIND_ROOT_PATH
The find_program command will fail if it is used on a tool that is listed in
ASSUME_PROVIDED. This is because these tools are in the hosttools directory
which is not listed in CMAKE_FIND_ROOT_PATH so cmake will not find them.
Adding the directory HOSTTOOLS_DIR to the CMAKE_FIND_ROOT_PATH variable fixes
the initial issue of needing to search for tools in ASSUME_PROVIDED.
Note that this change alone does not fix the issue because find_program will
by default only look into the subdirectories bin and usr/bin under the paths
in CMAKE_FIND_ROOT_PATH to find the programs and the hosttools directory has
instead the symlinks directly present without these subdirectories.
Set CMAKE_PROGRAM_PATH to by default include the root directory so
find_program can search the hosttools directory without needing the prefix
directories.
Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta/recipes-core/ell')
0 files changed, 0 insertions, 0 deletions