Commit 9ade8a9
committed
fix: make USE_OPENGL compile definitions conditional
The USE_OPENGL compile definition was being added unconditionally to the client
and main executable targets, even when USE_OPENGL option was set to OFF. This
could cause incorrect code paths to be enabled at compile time.
Changes:
- Make client target USE_OPENGL definition conditional: $<$<BOOL:>:USE_OPENGL>
- Make main executable USE_OPENGL definition conditional: $<$<BOOL:>:USE_OPENGL>
This ensures that when USE_OPENGL=OFF, the USE_OPENGL preprocessor definition
is not set, preventing compilation of OpenGL-specific code paths.1 parent d9761cd commit 9ade8a9
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1853 | 1853 | | |
1854 | 1854 | | |
1855 | 1855 | | |
1856 | | - | |
| 1856 | + | |
1857 | 1857 | | |
1858 | 1858 | | |
1859 | 1859 | | |
| |||
3276 | 3276 | | |
3277 | 3277 | | |
3278 | 3278 | | |
3279 | | - | |
| 3279 | + | |
3280 | 3280 | | |
3281 | 3281 | | |
3282 | 3282 | | |
| |||
0 commit comments