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.
This commit is contained in:
Přemysl Eric Janouch 2021-11-01 08:40:07 +01:00
parent ac6ac4f845
commit dd5e90a324
Signed by: p
GPG Key ID: A0420B94F92B9493
1 changed files with 9 additions and 0 deletions

View File

@ -324,9 +324,18 @@ elseif (WITH_GUI)
install (DIRECTORY ${icon_base} DESTINATION share) install (DIRECTORY ${icon_base} DESTINATION share)
install (SCRIPT cmake/Win32Cleanup.cmake) 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 install (CODE "execute_process (COMMAND
sh \"${PROJECT_SOURCE_DIR}/cmake/Win32CleanupAdwaita.sh\" sh \"${PROJECT_SOURCE_DIR}/cmake/Win32CleanupAdwaita.sh\"
WORKING_DIRECTORY \${CMAKE_INSTALL_PREFIX})") 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 () endif ()
# Do some unit tests # Do some unit tests