Commit ae0ebc9
committed
CMake: prefer the vendored simdjson include path
On macOS, locating DevIL via Homebrew brings /opt/homebrew/include onto
the global include path. A Homebrew-installed simdjson there can shadow
our vendored, version-matched copy in rts/lib/simdjson/include and break
the build (a newer simdjson trips an AppleClang macro collision).
Add BEFORE to the include_directories() call so the vendored simdjson
path always leads the include search and <simdjson.h> resolves in-tree
on every platform. This only reorders the vendored dir to the front and
is a no-op where no Homebrew simdjson is present.
Source: ExaDev/RecoilEngine 806d539.1 parent 7e07543 commit ae0ebc9
1 file changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
145 | | - | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
146 | 151 | | |
147 | 152 | | |
148 | 153 | | |
| |||
0 commit comments