cmake: fix isystem_include_dir path for windows

The system include directory might include spaces on windows, so quote
it.

Partially part of fix for #32111

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2021-04-01 06:57:57 -04:00
commit 11e44627e9
2 changed files with 2 additions and 2 deletions

View file

@ -44,7 +44,7 @@ if(NOT "${ARCH}" STREQUAL "posix")
endforeach() endforeach()
foreach(isystem_include_dir ${NOSTDINC}) foreach(isystem_include_dir ${NOSTDINC})
list(APPEND isystem_include_flags -isystem ${isystem_include_dir}) list(APPEND isystem_include_flags -isystem "\"${isystem_include_dir}\"")
endforeach() endforeach()
if(CONFIG_X86) if(CONFIG_X86)

View file

@ -36,7 +36,7 @@ foreach(file_name include/stddef.h)
endforeach() endforeach()
foreach(isystem_include_dir ${NOSTDINC}) foreach(isystem_include_dir ${NOSTDINC})
list(APPEND isystem_include_flags -isystem ${isystem_include_dir}) list(APPEND isystem_include_flags -isystem "\"${isystem_include_dir}\"")
endforeach() endforeach()
if(CONFIG_64BIT) if(CONFIG_64BIT)