From cbdb1cfaa60a3ab1b3a94ad53aa2661df7e22701 Mon Sep 17 00:00:00 2001 From: Přemysl Eric Janouch Date: Sat, 23 Oct 2021 18:09:18 +0200 Subject: Remove unnecessary DLLs from Windows builds This saves 21 MiB of MSYS2 libraries, without any adverse effects. The MSYS2 build remains bloated, due to the Adwaita icon theme. --- CMakeLists.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 22c465c..cd1cbbb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -244,8 +244,7 @@ elseif (WITH_GUI) install (DIRECTORY ${WIN32_DEPENDS_PATH}/bin/ DESTINATION . - FILES_MATCHING PATTERN "*.dll" - PATTERN "libgettext*" EXCLUDE) + FILES_MATCHING PATTERN "*.dll") install (DIRECTORY ${WIN32_DEPENDS_PATH}/etc/ DESTINATION etc) @@ -263,6 +262,8 @@ elseif (WITH_GUI) install (FILES ${WIN32_DEPENDS_PATH}/share/icons/hicolor/index.theme DESTINATION share/icons/hicolor) + + install (SCRIPT cmake/Win32Cleanup.cmake) endif () # Do some unit tests -- cgit v1.2.3-70-g09d2