aerothemeplasma-kde6/KWin/decoration/breeze-v5.93.0/cmake/GtkUpdateIconCache.cmake
2024-06-13 16:59:18 +02:00

17 lines
532 B
CMake
Executable file

# SPDX-FileCopyrightText: 2015 Volker Krause <vkrause@kde.org>
#
# SPDX-License-Identifier: BSD-3-Clause
find_program(GTK_UPDATE_ICON_CACHE_EXECUTABLE NAMES gtk-update-icon-cache)
macro(gtk_update_icon_cache _dir)
if (GTK_UPDATE_ICON_CACHE_EXECUTABLE)
install(CODE "
set(DESTDIR_VALUE \"\$ENV{DESTDIR}\")
if (NOT DESTDIR_VALUE)
execute_process(COMMAND ${GTK_UPDATE_ICON_CACHE_EXECUTABLE} -q -i . WORKING_DIRECTORY ${_dir})
endif()
")
endif()
endmacro()