printer: Switch to static freetype on Windows, finally fixes #2221

This commit is contained in:
RichardG867
2023-07-15 22:54:33 -03:00
parent 937b7740f2
commit 7a0100e35a
4 changed files with 18 additions and 228 deletions

View File

@@ -20,4 +20,11 @@ if(APPLE)
if (NOT GHOSTSCRIPT_LIB)
message(WARNING "Could not find ghostscript. The library will not be bundled and any related features will not work.")
endif()
endif ()
endif()
find_package(PkgConfig REQUIRED)
pkg_check_modules(FREETYPE REQUIRED IMPORTED_TARGET freetype2)
target_link_libraries(86Box PkgConfig::FREETYPE)
if(STATIC_BUILD)
target_link_libraries(86Box -static ${FREETYPE_STATIC_LIBRARIES})
endif()