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:
parent
df368e8094
commit
f72e4fc723
1 changed files with 0 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue