diff options
author | Přemysl Eric Janouch <p@janouch.name> | 2021-11-01 08:40:07 +0100 |
---|---|---|
committer | Přemysl Eric Janouch <p@janouch.name> | 2021-11-01 08:42:41 +0100 |
commit | dd5e90a324a58b9ed281e66dbf59e31e15c8c3ef (patch) | |
tree | fdf86eff08b56362f4f8e0e418c808406f153ed7 | |
parent | ac6ac4f845afbed44845fcb9b54620badd7a87a5 (diff) | |
download | tdv-dd5e90a324a58b9ed281e66dbf59e31e15c8c3ef.tar.gz tdv-dd5e90a324a58b9ed281e66dbf59e31e15c8c3ef.tar.xz tdv-dd5e90a324a58b9ed281e66dbf59e31e15c8c3ef.zip |
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.
-rw-r--r-- | CMakeLists.txt | 9 |
1 files changed, 9 insertions, 0 deletions
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 |