From 3aff3784cfc408bed41641c413f670728fe3c181 Mon Sep 17 00:00:00 2001 From: Andy Vandijck Date: Sun, 13 Jul 2025 14:58:33 +0200 Subject: [PATCH] Update BZ2 library for windows debug Update BZ2 library for windows debug --- src/core/fex/CMakeLists.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/core/fex/CMakeLists.txt b/src/core/fex/CMakeLists.txt index e21ec546..ed08680d 100644 --- a/src/core/fex/CMakeLists.txt +++ b/src/core/fex/CMakeLists.txt @@ -123,7 +123,12 @@ target_include_directories(vbam-fex PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} ${ZLIB_INCLUDE_DIRS} ) -find_library(BZ2_LIBRARY bz2) +if (CMAKE_BUILD_TYPE EQUALS Debug) + find_library(BZ2_LIBRARY NAMES bz2d bz2) +else() + find_library(BZ2_LIBRARY bz2) +endif() + find_library(LZMA_LIBRARY lzma) if (BZ2_LIBRARY AND ENABLE_BZ2)