diff options
| author | lat9nq <22451773+lat9nq@users.noreply.github.com> | 2021-04-17 23:35:13 -0400 |
|---|---|---|
| committer | lat9nq <22451773+lat9nq@users.noreply.github.com> | 2021-04-17 23:42:57 -0400 |
| commit | c8a26a2cbf8894dfde84f031df684f29960b65e8 (patch) | |
| tree | 6d14faea4a91e9cd8e5a516712b677354a92a41b /src | |
| parent | a608e2a8529ba193b5177a2bae194741611c51ac (diff) | |
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.
Diffstat (limited to 'src')
| -rw-r--r-- | src/input_common/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/input_common/CMakeLists.txt b/src/input_common/CMakeLists.txt index c3cfe7efc5..de53e1fda1 100644 --- a/src/input_common/CMakeLists.txt +++ b/src/input_common/CMakeLists.txt @@ -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 |
