Skip to content

Commit c3f17a2

Browse files
authored
[macos] Treat /usr/local/include as a "system" include path
https://stackoverflow.com/questions/2441047/how-do-i-set-scons-system-include-path
1 parent 1f2c444 commit c3f17a2

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

tools/build_script_generator/scons/resources/SConscript.in

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,11 +138,13 @@ env.Append(MODM_BOSSAC_OPTIONS = "{{ bossac_options }}")
138138
env["XPCC_SYSTEM_DESIGN"] = "$BASEPATH/modm/tools/xpcc_generator"
139139
%% endif
140140

141-
142-
env.AppendUnique(CPPPATH=[
143141
%% if is_modm and family == "darwin"
144-
"/usr/local/include",
142+
env.AppendUnique(CPPFLAGS=[
143+
"-isystem", "/usr/local/include",
144+
])
145145
%% endif
146+
147+
env.AppendUnique(CPPPATH=[
146148
%% for path in include_paths | sort
147149
abspath("{{ path | relocate | modm.windowsify(escape_level=1) }}"),
148150
%% endfor

0 commit comments

Comments
 (0)