diff options
author | Erik Kundiman <erik@megapahit.org> | 2023-08-15 16:28:26 +0800 |
---|---|---|
committer | Erik Kundiman <erik@megapahit.org> | 2023-08-15 23:24:06 +0800 |
commit | 6d31ea65d2c597397971fb97fc17610277104e1b (patch) | |
tree | ac19cde920e9dccac900dfa6a47599cfeedef893 /indra/cmake/LLWindow.cmake | |
parent | ee14fd56f2b49e4fb38822c85bab4d342117a177 (diff) |
SDL 1.2 to 2.0 migration
Both keycodes and scancodes are now 32 bits, so the key type is
lengthened from U16 to U32.
Diffstat (limited to 'indra/cmake/LLWindow.cmake')
-rw-r--r-- | indra/cmake/LLWindow.cmake | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/indra/cmake/LLWindow.cmake b/indra/cmake/LLWindow.cmake index f952383a27..09b8fdb83d 100644 --- a/indra/cmake/LLWindow.cmake +++ b/indra/cmake/LLWindow.cmake @@ -9,11 +9,11 @@ add_library( ll::SDL INTERFACE IMPORTED ) if (NOT (USE_AUTOBUILD_3P OR USE_CONAN) AND NOT DARWIN) include(FindPkgConfig) - pkg_check_modules(Sdl REQUIRED sdl) + pkg_check_modules(Sdl2 REQUIRED sdl2) target_compile_definitions( ll::SDL INTERFACE LL_SDL=1) - target_include_directories(ll::SDL SYSTEM INTERFACE ${Sdl_INCLUDE_DIRS}) - target_link_directories(ll::SDL INTERFACE ${Sdl_LIBRARY_DIRS}) - target_link_libraries(ll::SDL INTERFACE ${Sdl_LIBRARIES} X11) + target_include_directories(ll::SDL SYSTEM INTERFACE ${Sdl2_INCLUDE_DIRS}) + target_link_directories(ll::SDL INTERFACE ${Sdl2_LIBRARY_DIRS}) + target_link_libraries(ll::SDL INTERFACE ${Sdl2_LIBRARIES} X11) return () endif () |