| Summary: | CMake build doesn't locate X headers correctly under FreeBSD without manual CFLAGS | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Mahmoud Al-Qudsi <mqudsi> |
| Component: | build | Assignee: | Ryan C. Gordon <icculus> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | CC: | icculus |
| Version: | HG 2.1 | ||
| Hardware: | x86_64 | ||
| OS: | FreeBSD | ||
|
Description
Mahmoud Al-Qudsi
2018-06-01 18:48:08 UTC
This happens because the configure script uses AC_PATH_X to figure this out with a bunch of internal magic, but CMake doesn't. I've fixed this up to look at the most popular places for the headers to exist (largely taken from CMake's FindX11 module, which we currently don't use and which also didn't know to look in /usr/local, as of 3.5.2), and some other fixes here: https://hg.libsdl.org/SDL/rev/c0c4ba22a685 Tested on FreeBSD 9, this went from completely broken to able to build X11 support with this patch, so I think we're good here. --ryan. Awesome, thanks! |