printer: Switch to static freetype on Windows, finally fixes #2221
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user