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)