Skip to content

Commit 483f597

Browse files
committed
Use quotes around the include paths
On windows, the include folders are in C:/Program Files (x86)/Microsoft Visual Studio XX.X/, which contains space.
1 parent 440835c commit 483f597

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pygccxml/parser/source_reader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ def __create_command_line_castxml(self, source_file, xmlfile):
155155

156156
# Add additional includes directories
157157
dirs = self.__search_directories
158-
cmd.append(''.join([' -I%s' % search_dir for search_dir in dirs]))
158+
cmd.append(''.join([' -I"%s"' % search_dir for search_dir in dirs]))
159159

160160
# Clang option: -c Only run preprocess, compile, and assemble steps
161161
cmd.append("-c")

0 commit comments

Comments
 (0)