Commit 6cddead
committed
Use unprefixed SDL include paths for SDL2 and SDL1
When SDL2 is built from source or provided via CMake targets, the
include path points directly to the headers directory, so <SDL.h>
works but <SDL2/SDL.h> does not. The <SDL2/...> form only works
with system pkg-config installs that add the parent directory.
Use the unprefixed form for SDL2 and SDL1 which is compatible with
both CMake-target and system-install include path layouts.
SDL3 retains the <SDL3/...> prefix as that is the canonical form
established by the SDL3 project.1 parent b9b9808 commit 6cddead
2 files changed
Lines changed: 7 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
65 | | - | |
| 64 | + | |
| 65 | + | |
66 | 66 | | |
67 | | - | |
68 | | - | |
| 67 | + | |
| 68 | + | |
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | | - | |
38 | | - | |
| 37 | + | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| |||
0 commit comments