cmake: gcc: no need to force add system include

There is no need to force add system include by adding
${SYSROOT_DIR}/include. Let GCC tell us what include paths
are needed with --print-file-name and feed them via -isystem.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
This commit is contained in:
Daniel Leung 2020-03-26 14:00:01 -07:00 committed by Anas Nashif
commit f72e4fc723

View file

@ -86,7 +86,6 @@ if(SYSROOT_DIR)
)
set(LIBC_LIBRARY_DIR "\"${SYSROOT_DIR}\"/lib/${NEWLIB_DIR}")
set(LIBC_INCLUDE_DIR ${SYSROOT_DIR}/include)
endif()
# For CMake to be able to test if a compiler flag is supported by the