From d88662a8491b735deb528211cc1c3c17fffe0749 Mon Sep 17 00:00:00 2001 From: Luke Street Date: Thu, 9 Apr 2026 19:37:42 -0600 Subject: [PATCH] Support shared libjpeg-turbo --- CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4cca061f1f..d87bb1afe2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -217,7 +217,11 @@ set(GAME_LIBS aurora::core aurora::gx aurora::gd aurora::si aurora::vi aurora::p aurora::card freeverb cxxopts::cxxopts absl::flat_hash_map nlohmann_json::nlohmann_json TracyClient) if (DUSK_MOVIE_SUPPORT) - list(APPEND GAME_LIBS libjpeg-turbo::turbojpeg-static) + if (TARGET libjpeg-turbo::turbojpeg-static) + list(APPEND GAME_LIBS libjpeg-turbo::turbojpeg-static) + else () + list(APPEND GAME_LIBS libjpeg-turbo::turbojpeg) + endif () list(APPEND GAME_COMPILE_DEFS MOVIE_SUPPORT=1) endif ()