diff --git a/dependencies/subprojects/animationwindow/meson.build b/dependencies/subprojects/animationwindow/meson.build
index 16da4b14d76feeec3c78431f65f5dca61824bbf2..ddc7f40817f7f6f2a1d4171e3e1342434a3ce420 100644
--- a/dependencies/subprojects/animationwindow/meson.build
+++ b/dependencies/subprojects/animationwindow/meson.build
@@ -32,7 +32,11 @@ animationwindow = static_library('animationwindow', build_files, include_directo
 install_subdir('include', install_dir: '.')
 install_subdir('src', install_dir: '.')
 
-animationwindow_dep = declare_dependency(link_with: animationwindow, include_directories: incdir)
+animationwindow_dep = declare_dependency(
+  link_with: animationwindow,
+  include_directories: incdir,
+  dependencies: [sdl2_dep, sdl2image_dep, sdl2mixer_dep]
+)
 
 import('pkgconfig').generate(animationwindow)