[freetype] fix DLL install on Windows (#5354)

* [wip] fix DLL install on Windows

* change patchfile encoding to UTF-8
This commit is contained in:
Lennart Trunk 2019-02-12 22:40:27 +01:00 committed by Victor Romero
parent 477ba33fbf
commit 349d82eeca
3 changed files with 15 additions and 1 deletions

View File

@ -0,0 +1,13 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index fe9bc65..dd8a878 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -478,6 +478,8 @@ if (NOT SKIP_INSTALL_LIBRARIES AND NOT SKIP_INSTALL_ALL)
EXPORT freetype-targets
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
+# DLL is RUNTIME
+ RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
FRAMEWORK DESTINATION Library/Frameworks
COMPONENT libraries)
install(

View File

@ -1,4 +1,4 @@
Source: freetype
Version: 2.9.1
Version: 2.9.1-1
Build-Depends: zlib, bzip2, libpng
Description: A library to render fonts.

View File

@ -14,6 +14,7 @@ vcpkg_extract_source_archive_ex(
0001-Fix-install-command.patch
0002-Add-CONFIG_INSTALL_PATH-option.patch
0003-Fix-UWP.patch
0004-Fix-DLL-install.patch
)
vcpkg_configure_cmake(