From 5ba2ad529d5dc12aaa1236c9947396e28af7158a Mon Sep 17 00:00:00 2001 From: RichardG867 Date: Sun, 16 Jul 2023 00:01:59 -0300 Subject: [PATCH] printer: Fix Windows build --- src/printer/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/printer/CMakeLists.txt b/src/printer/CMakeLists.txt index 4f4158476..dea0c7fbe 100644 --- a/src/printer/CMakeLists.txt +++ b/src/printer/CMakeLists.txt @@ -26,5 +26,9 @@ find_package(PkgConfig REQUIRED) pkg_check_modules(FREETYPE REQUIRED IMPORTED_TARGET freetype2) target_link_libraries(86Box PkgConfig::FREETYPE) if(STATIC_BUILD) + if(QT) + # Qt provides its own version of harfbuzz which leads to duplicated symbols. + target_link_options(86Box PRIVATE "LINKER:--allow-multiple-definition") + endif() target_link_libraries(86Box -static ${FREETYPE_STATIC_LIBRARIES}) endif()