From 74d47b07ca0cc65cf421d2960cc75740ca68fc33 Mon Sep 17 00:00:00 2001 From: Peter Date: Thu, 21 Oct 2021 19:31:42 +0200 Subject: [PATCH] Try SDL2::SDL2 instead of SDL2 in CMakeLists.txt. --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8004db4..d211b42 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -100,7 +100,7 @@ IF(MAIKO_DISPLAY_SDL) SET(MAIKO_DISPLAY_SDL_DEFINITIONS "-DSDL" ) - SET(MAIKO_DISPLAY_SDL_LIBRARIES SDL2) + SET(MAIKO_DISPLAY_SDL_LIBRARIES SDL2::SDL2) SET(MAIKO_DISPLAY_SDL_SRCS src/sdl.c ) @@ -432,7 +432,7 @@ IF(MAIKO_DISPLAY_SDL) # Tell it that the SDL launcher is available. TARGET_COMPILE_DEFINITIONS(lde PUBLIC ${MAIKO_DISPLAY_SDL_DEFINITIONS}) # This is needed so that it can call XOpenDisplay. - TARGET_LINK_LIBRARIES(lde SDL2) + TARGET_LINK_LIBRARIES(lde SDL2::SDL2) ENDIF() ADD_EXECUTABLE(ldeether src/ldeether.c src/dlpi.c)