File: README.txt

package info (click to toggle)
libsdl2 2.0.14%2Bdfsg2-3%2Bdeb11u1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 69,544 kB
  • sloc: ansic: 232,688; cpp: 82,883; sh: 11,709; objc: 10,152; xml: 4,737; makefile: 747; asm: 661; perl: 639; javascript: 286; python: 77
file content (16 lines) | stat: -rw-r--r-- 715 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
THIS IS NOT THE RECOMMENDED WAY TO USE SDL2 FROM CMAKE

Since SDL 2.0.6, the recommended way to link to a system copy of SDL2
from a CMake project is to behave like debian/tests/cmake-example - use
find_package(SDL2) without a FindSDL2 macro. However, not all upstream
projects that build using CMake have caught up with this yet.

This specific implementation was taken from openjk,
but it's regularly copied around, and can be found
in hedgewars, spring and many other packages:
https://codesearch.debian.net/search?q=Other+versions+link+to+-lSDL2main&literal=1

Inclusion of a vaguely similar file in CMake was rejected in
<https://github.com/Kitware/CMake/pull/149>.

Bug-Debian: https://bugs.debian.org/951087