The generated toolchain file in cmake.bbclass uses ${includedir} for populating 
CMAKE_C_IMPLICIT_INCLUDE_DIRECTORIES and 
CMAKE_CXX_IMPLICIT_INCLUDE_DIRECTORIES. This results in include path pointing 
to /usr/include, is this correct? I expected to only allow header files from 
the recipe sysroot.

root@f932251cbb7f:git# cat ../toolchain.cmake | grep INCLUDE_DIR
list(APPEND CMAKE_C_IMPLICIT_INCLUDE_DIRECTORIES /usr/include)
list(APPEND CMAKE_CXX_IMPLICIT_INCLUDE_DIRECTORIES /usr/include)

Thanks,
Kenth
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#181992): 
https://lists.openembedded.org/g/openembedded-core/message/181992
Mute This Topic: https://lists.openembedded.org/mt/99236908/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

  • [OE-core] cmake.bbclass poisonin... Kenth Eriksson via lists.openembedded.org

Reply via email to