cmake: Use SDL 2.0.14 and fix CMake scope issue
Forces using SDL 2.0.14. Upgrades the SDL external to that version. Adds a message when switching to the external. Fixes an error where input_common only links to SDL when SDL2_FOUND is set, but externals/CMakeLists cannot set that variable to the required scope. Switch to using ENABLE_SDL2, which we can use since we now include the SDL source.
This commit is contained in:
parent
2a2a578932
commit
de69a5266f
4 changed files with 7 additions and 8 deletions
|
@ -62,7 +62,7 @@ else()
|
|||
)
|
||||
endif()
|
||||
|
||||
if(SDL2_FOUND)
|
||||
if (ENABLE_SDL2)
|
||||
target_sources(input_common PRIVATE
|
||||
sdl/sdl_impl.cpp
|
||||
sdl/sdl_impl.h
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue