mirror of https://github.com/mgba-emu/mgba.git
Revert "Fix CMakeFile.txt for SDL2 supplied SDL2-config.cmake, which is inclu… (#830)"
This reverts commit f5887513fd
.
Broke too much stuff, didn't fix enough
This commit is contained in:
parent
f5887513fd
commit
1f2ff497e2
|
@ -1,11 +1,8 @@
|
|||
set(SDL_VERSION "2" CACHE STRING "Version of SDL to use (1.2 or 2)")
|
||||
|
||||
if (SDL_VERSION EQUAL "2")
|
||||
find_package(SDL2)
|
||||
if (NOT SDL2_FOUND)
|
||||
include(FindPkgConfig)
|
||||
pkg_search_module(SDL2 sdl2)
|
||||
endif()
|
||||
include(FindPkgConfig)
|
||||
pkg_search_module(SDL2 sdl2)
|
||||
if (SDL2_FOUND)
|
||||
set(SDL_INCLUDE_DIR ${SDL2_INCLUDE_DIRS})
|
||||
set(SDL_LIBRARY ${SDL2_LIBRARIES})
|
||||
|
|
Loading…
Reference in New Issue