* cmake.bbclass poisoning from to /usr/include?
@ 2023-05-31 6:30 Kenth Eriksson
0 siblings, 0 replies; 2+ messages in thread
From: Kenth Eriksson @ 2023-05-31 6:30 UTC (permalink / raw)
To: openembedded-core
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* cmake.bbclass poisoning from to /usr/include?
@ 2023-05-31 6:37 Kenth Eriksson
0 siblings, 0 replies; 2+ messages in thread
From: Kenth Eriksson @ 2023-05-31 6:37 UTC (permalink / raw)
To: openembedded-core
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-06-01 12:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-31 6:30 cmake.bbclass poisoning from to /usr/include? Kenth Eriksson
2023-05-31 6:37 Kenth Eriksson
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.