Skip to content

Commit

Permalink
cmake: fix isystem_include_dir path for windows
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
nashif committed Apr 2, 2021
1 parent 7f46a59 commit 11e4462
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmake/compiler/clang/target.cmake
Original file line number Diff line number Diff line change
@@ -44,7 +44,7 @@ if(NOT "${ARCH}" STREQUAL "posix")
endforeach()

foreach(isystem_include_dir ${NOSTDINC})
list(APPEND isystem_include_flags -isystem ${isystem_include_dir})
list(APPEND isystem_include_flags -isystem "\"${isystem_include_dir}\"")
endforeach()

if(CONFIG_X86)
2 changes: 1 addition & 1 deletion cmake/compiler/icx/target.cmake
Original file line number Diff line number Diff line change
@@ -36,7 +36,7 @@ foreach(file_name include/stddef.h)
endforeach()

foreach(isystem_include_dir ${NOSTDINC})
list(APPEND isystem_include_flags -isystem ${isystem_include_dir})
list(APPEND isystem_include_flags -isystem "\"${isystem_include_dir}\"")
endforeach()

if(CONFIG_64BIT)

0 comments on commit 11e4462

Please sign in to comment.