From e0b99de789a5fa3d88fbee019b591bd742481025 Mon Sep 17 00:00:00 2001 From: Trihedraf Date: Thu, 22 Apr 2021 12:57:04 -0700 Subject: [PATCH] Make .deb actually have dependencies --- CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9e29fd7cb..7b6e8c02c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -873,7 +873,11 @@ if(CPACK) # -G DEB set(CPACK_PACKAGE_CONTACT "anders@jenbo.dk") - set(CPACK_DEBIAN_PACKAGE_SHLIBDEPS ON) + if(USE_SDL1) + set(CPACK_DEBIAN_PACKAGE_DEPENDS "libsdl1.2debian, libsdl-mixer1.2, libsdl-ttf2.0-0") + else() + set(CPACK_DEBIAN_PACKAGE_DEPENDS "libsdl2-2.0-0, libsdl2-mixer-2.0-0, libsdl2-ttf-2.0-0") + endif() set(CPACK_DEBIAN_FILE_NAME DEB-DEFAULT) # -G RPM