From dd5e90a324a58b9ed281e66dbf59e31e15c8c3ef Mon Sep 17 00:00:00 2001 From: Přemysl Eric Janouch
Date: Mon, 1 Nov 2021 08:40:07 +0100 Subject: CMakeLists.txt: update icon cache after cleanup docs/iconcache.txt says the format is machine-independent. It does not seem to result in any noticeable improvement. --- CMakeLists.txt | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index f566cd0..ddd9cfc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -324,9 +324,18 @@ elseif (WITH_GUI) install (DIRECTORY ${icon_base} DESTINATION share) install (SCRIPT cmake/Win32Cleanup.cmake) + + find_program (GTK_UPDATE_ICON_CACHE_EXECUTABLE gtk-update-icon-cache) + if (NOT GTK_UPDATE_ICON_CACHE_EXECUTABLE) + message (FATAL_ERROR "gtk-update-icon-cache not found") + endif () + install (CODE "execute_process (COMMAND sh \"${PROJECT_SOURCE_DIR}/cmake/Win32CleanupAdwaita.sh\" WORKING_DIRECTORY \${CMAKE_INSTALL_PREFIX})") + install (CODE " # This may speed up program start-up a little bit + execute_process (COMMAND \"${GTK_UPDATE_ICON_CACHE_EXECUTABLE}\" + \"\${CMAKE_INSTALL_PREFIX}/share/icons/Adwaita\")") endif () # Do some unit tests -- cgit v1.2.3-70-g09d2