]>
Commit | Line | Data |
---|---|---|
cbb08a67 JB |
1 | --- mediastreamer2-5.3.29/CMakeLists.txt.orig 2024-03-09 07:26:07.891123982 +0100 |
2 | +++ mediastreamer2-5.3.29/CMakeLists.txt 2024-03-09 07:28:42.010289047 +0100 | |
3 | @@ -297,7 +297,13 @@ if(NOT APPLE AND NOT ANDROID AND OPENGL_ | |
4 | set(MS2_USE_OLD_OPENGL_PROTOTYPE TRUE) # Before 1.11, Glew have few different headers from OpenGL Specs | |
85ee47be | 5 | endif() |
b4167869 JB |
6 | endif() |
7 | -# TODO: Handle SDL option | |
8 | +if(ENABLE_SDL) | |
9 | + find_package(SDL) | |
10 | + if(NOT SDL_FOUND) | |
11 | + message(WARNING "Could not find SDL library") | |
12 | + set(ENABLE_SDL OFF CACHE BOOL "Enable SDL video output." FORCE) | |
13 | + endif() | |
14 | +endif() | |
15 | if(ENABLE_THEORA) | |
16 | find_package(Theora) | |
cbb08a67 JB |
17 | if(NOT Theora_FOUND) |
18 | @@ -462,6 +468,9 @@ endif() | |
19 | if(GLEW_FOUND) | |
20 | list(APPEND LINK_LIBS GLEW::GLEW) | |
b4167869 JB |
21 | endif() |
22 | +if(SDL_FOUND) | |
23 | + list(APPEND LINK_LIBS SDL) | |
24 | +endif() | |
cbb08a67 JB |
25 | if(Theora_FOUND) |
26 | list(APPEND LINK_LIBS ${Theora_TARGET}) | |
b4167869 | 27 | endif() |