Update CMakeLists.txt

SDL2 is not required for the libretro target
This commit is contained in:
Andrés 2019-11-10 13:47:15 -05:00 committed by GitHub
parent 168c6b6995
commit 67c0c36efb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -181,7 +181,9 @@ if(USING_EGL)
set(OPENGL_LIBRARIES ${OPENGL_LIBRARIES} ${EGL_LIBRARIES})
endif()
find_package(SDL2)
if(NOT LIBRETRO)
find_package(SDL2)
endif()
include(FindThreads)
if(APPLE)