mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-07 08:39:00 +00:00
Merge pull request #4843 from ligfx/enable_Sdl
CMake: make option ENABLE_SDL work again
This commit is contained in:
commit
f5e940d59d
1 changed files with 22 additions and 20 deletions
|
@ -51,6 +51,7 @@ if(UNIX)
|
||||||
set(SRCS ${SRCS} ControllerInterface/Pipes/Pipes.cpp)
|
set(SRCS ${SRCS} ControllerInterface/Pipes/Pipes.cpp)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(ENABLE_SDL)
|
||||||
find_package(SDL2)
|
find_package(SDL2)
|
||||||
if(SDL2_FOUND)
|
if(SDL2_FOUND)
|
||||||
message(STATUS "Using shared SDL2")
|
message(STATUS "Using shared SDL2")
|
||||||
|
@ -73,5 +74,6 @@ if(SDL_TARGET AND TARGET ${SDL_TARGET})
|
||||||
else()
|
else()
|
||||||
message(STATUS "SDL NOT found, disabling SDL input")
|
message(STATUS "SDL NOT found, disabling SDL input")
|
||||||
endif()
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
add_dolphin_library(inputcommon "${SRCS}" "${LIBS}")
|
add_dolphin_library(inputcommon "${SRCS}" "${LIBS}")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue