]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
cmake: do not look into native sysroot in the nativesdk environment
authorAlexander Kanavin <alex.kanavin@gmail.com>
Wed, 23 Jan 2019 16:17:39 +0000 (17:17 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 24 Jan 2019 17:45:28 +0000 (17:45 +0000)
commitcd1c0a0631ad128b25e97f047750579caead051a
treeca513e36ba2f354dde82f08247c4515d198f1fbb
parent3dd2fea51110950ec3d8c444f599ff855b4b936c
cmake: do not look into native sysroot in the nativesdk environment

I am not sure why we do this in the first place, but it is causing
cmake to erroneously pick up items from the native sysroot
when building for the target and the target item is missing, for example:

https://autobuilder.yoctoproject.org/typhoon/#/builders/59/builds/198/steps/7/logs/step2c

Note that for executable programs this variable is not referred to,
as set by
 set( CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER )
in the same file.

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/cmake/cmake/OEToolchainConfig.cmake