From 332e67694f501e2dabc553918837492aebf65aee Mon Sep 17 00:00:00 2001 From: Marvin Gajek Date: Sat, 20 Apr 2024 02:13:10 +0200 Subject: [PATCH] link to correct SDL2 static libs --- apps/video-player/src/CMakeLists.txt | 3 ++- modules/video/src/CMakeLists.txt | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/apps/video-player/src/CMakeLists.txt b/apps/video-player/src/CMakeLists.txt index 4e0db77..7b6e4b3 100644 --- a/apps/video-player/src/CMakeLists.txt +++ b/apps/video-player/src/CMakeLists.txt @@ -29,6 +29,7 @@ find_package(SDL2 CONFIG REQUIRED) include_directories(../include ../../../modules/video/include + ${FFMPEG_INCLUDE_DIRS} ) set(VIDEO_PLAYER_SRC video-player.cpp) @@ -43,6 +44,6 @@ else() message(WARNING "Unsupported platform") endif() -target_link_libraries(${TARGET} PRIVATE video ${FFMPEG_LIBRARIES} SDL2::SDL2-static) +target_link_libraries(${TARGET} PRIVATE video ${FFMPEG_LIBRARIES} SDL2::SDL2) install(TARGETS ${TARGET}) \ No newline at end of file diff --git a/modules/video/src/CMakeLists.txt b/modules/video/src/CMakeLists.txt index 0046757..4ed2134 100644 --- a/modules/video/src/CMakeLists.txt +++ b/modules/video/src/CMakeLists.txt @@ -34,9 +34,9 @@ set(VIDEO_SRC ) add_library(${TARGET} STATIC ${VIDEO_SRC}) -target_link_libraries(${TARGET} PRIVATE ${FFMPEG_LIBRARIES} SDL2::SDL2-static) +target_link_libraries(${TARGET} PRIVATE ${FFMPEG_LIBRARIES} SDL2::SDL2) add_library(${TARGET}_wrapper SHARED ${VIDEO_SRC}) # required for bindings -target_link_libraries(${TARGET}_wrapper PRIVATE ${FFMPEG_LIBRARIES} SDL2::SDL2-static) +target_link_libraries(${TARGET}_wrapper PRIVATE ${FFMPEG_LIBRARIES} SDL2::SDL2) install(TARGETS ${TARGET} ${TARGET}_wrapper) \ No newline at end of file