aboutsummaryrefslogtreecommitdiff
path: root/tests/ECMInstallIconsTest/CMakeLists.txt
diff options
context:
space:
mode:
authorAlex Merry <alex.merry@kde.org>2015-10-14 12:10:31 +0100
committerAlex Merry <alex.merry@kde.org>2015-10-20 13:00:49 +0100
commitfb7b8eea7d91772f989d5b060c86df20f2ebdb66 (patch)
tree7631daf4c7d75676cecbaead90501dc40ddca3a3 /tests/ECMInstallIconsTest/CMakeLists.txt
parent20bf1de42b035eb669d0250f4d549c15f9256e58 (diff)
downloadextra-cmake-modules-fb7b8eea7d91772f989d5b060c86df20f2ebdb66.tar.gz
extra-cmake-modules-fb7b8eea7d91772f989d5b060c86df20f2ebdb66.tar.bz2
Fix ECMInstallIconsTest.
ECMInstallIcons now updates the theme cache if gtk-update-icon-cache is available, producing files the test hadn't been expecting.. Updating the test revealed that the old-style ecm_install_icons call only updated the hicolor cache, and not any of the other themes. REVIEW: 125631
Diffstat (limited to 'tests/ECMInstallIconsTest/CMakeLists.txt')
-rw-r--r--tests/ECMInstallIconsTest/CMakeLists.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/ECMInstallIconsTest/CMakeLists.txt b/tests/ECMInstallIconsTest/CMakeLists.txt
index 7fe4ca35..738cba91 100644
--- a/tests/ECMInstallIconsTest/CMakeLists.txt
+++ b/tests/ECMInstallIconsTest/CMakeLists.txt
@@ -94,5 +94,12 @@ ecm_install_icons(
DESTINATION badly-named-files-test
)
+find_program(icon_cache_generator NAMES gtk-update-icon-cache)
+if (icon_cache_generator)
+ set(GENERATE_ICON_CACHE TRUE)
+else()
+ set(GENERATE_ICON_CACHE FALSE)
+endif()
+
# this will be run by CTest
configure_file(check_tree.cmake.in "${CMAKE_CURRENT_BINARY_DIR}/check_tree.cmake" @ONLY)