1
0
mirror of https://github.com/Interlisp/maiko.git synced 2026-03-05 18:49:09 +00:00

Try SDL2::SDL2 instead of SDL2 in CMakeLists.txt.

This commit is contained in:
Peter
2021-10-21 19:31:42 +02:00
parent e9968a211b
commit 572b94d4a7

View File

@@ -80,7 +80,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
)
@@ -424,7 +424,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)