From 9c680831084275bd9d8aaec7b1c7aeed7b9ee325 Mon Sep 17 00:00:00 2001 From: Cameron Cawley Date: Thu, 11 Apr 2024 19:05:18 +0100 Subject: [PATCH] Specify citro3d as a dependency of the SDL targets --- CMakeLists.txt | 1 + test/CMakeLists.txt | 6 +----- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8ba4de3bde..86513783bd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2915,6 +2915,7 @@ elseif(N3DS) list(APPEND SOURCE_FILES ${N3DS_VIDEO_SOURCES}) set(SDL_VIDEO_OPENGL 0) set(HAVE_SDL_VIDEO TRUE) + list(APPEND EXTRA_LIBS citro3d) endif() if(SDL_LOCALE) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 52235c9b4b..8d413c85d5 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -215,11 +215,7 @@ add_sdl_test_executable(testvulkan testvulkan.c) add_sdl_test_executable(testoffscreen testoffscreen.c) if(N3DS) - sdltest_link_librararies( - SDL2::SDL2main - SDL2::SDL2-static - citro3d - ) + sdltest_link_librararies(SDL2::SDL2main) endif() if(PSP)