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:
parent
7f46a59a42
commit
11e44627e9
2 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue