]> code.ossystems Code Review - openembedded-core.git/commit
cmake: fix compiling some C++ projects with Yocto SDK and GCC
authorUrs Fässler <urs.fassler@bbv.ch>
Wed, 8 Aug 2018 07:33:52 +0000 (09:33 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 14 Aug 2018 10:36:22 +0000 (11:36 +0100)
commitcb42802f2fe1760f894a435b07286bca3a220364
treeb5890f94c8502062c3d62692e16395bbfc96c1f1
parentba88fe46d47846042518a5a1017d782ba548202c
cmake: fix compiling some C++ projects with Yocto SDK and GCC

Setting CMAKE_SYSROOT in the toolchain file allows CMake to correctly
remove user-provided system include directories pointing to
<sysroot>/usr/include. The mentioned projects failed with "stdlib.h:
No such file or directory #include_next <stdlib.h>".

Signed-off-by: Urs Fässler <urs.fassler@bbv.ch>
Signed-off-by: Raphael Freudiger <raphael.freudiger@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/cmake/cmake/OEToolchainConfig.cmake