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 zephyrproject-rtos#32111

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
  • Loading branch information
nashif committed Apr 1, 2021
1 parent d9a89fb commit 7296bbe
Show file tree
Hide file tree
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
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion cmake/compiler/icx/target.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7296bbe

Please sign in to comment.