| 1 |
THIS IS NOT THE RECOMMENDED WAY TO USE SDL2 FROM CMAKE |
| 2 |
|
| 3 |
Since SDL 2.0.6, the recommended way to link to a system copy of SDL2 |
| 4 |
from a CMake project is to behave like debian/tests/cmake-example - use |
| 5 |
find_package(SDL2) without a FindSDL2 macro. However, not all upstream |
| 6 |
projects that build using CMake have caught up with this yet. |
| 7 |
|
| 8 |
This specific implementation was taken from openjk, |
| 9 |
but it's regularly copied around, and can be found |
| 10 |
in hedgewars, spring and many other packages: |
| 11 |
https://codesearch.debian.net/search?q=Other+versions+link+to+-lSDL2main&literal=1 |
| 12 |
|
| 13 |
Inclusion of a vaguely similar file in CMake was rejected in |
| 14 |
<https://github.com/Kitware/CMake/pull/149>. |
| 15 |
|
| 16 |
Bug-Debian: https://bugs.debian.org/951087 |