]>
Commit | Line | Data |
---|---|---|
85ee47be JB |
1 | --- mediastreamer2-5.1.72/CMakeLists.txt.orig 2023-04-10 18:45:22.718792262 +0200 |
2 | +++ mediastreamer2-5.1.72/CMakeLists.txt 2023-04-10 19:00:27.760555896 +0200 | |
3 | @@ -325,7 +325,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 | |
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) | |
17 | if(NOT THEORA_FOUND) | |
85ee47be | 18 | @@ -498,6 +504,9 @@ if(GLEW_FOUND) |
b4167869 JB |
19 | list(APPEND LINK_LIBS GLEW) |
20 | list(APPEND MEDIASTREAMER2_INCLUDE_DIRS ${GLEW_INCLUDE_DIRS}) | |
21 | endif() | |
22 | +if(SDL_FOUND) | |
23 | + list(APPEND LINK_LIBS SDL) | |
24 | +endif() | |
25 | if(THEORA_FOUND) | |
26 | list(APPEND LINK_LIBS theora) | |
27 | endif() |