summaryrefslogtreecommitdiffstats
path: root/CMakeScripts
diff options
context:
space:
mode:
authorEduard Braun <eduard.braun2@gmx.de>2017-03-08 23:03:24 +0000
committerEduard Braun <eduard.braun2@gmx.de>2017-03-08 23:03:24 +0000
commit0c9751c69184c11fea5f4f5e27074f1b21abb9da (patch)
tree895e4c6daa56c7b1bec537b13ae1618a5235c17c /CMakeScripts
parentRepair functionality broken by Alex Valvani's "Gtk+ 3 deprecation fixes" (diff)
downloadinkscape-0c9751c69184c11fea5f4f5e27074f1b21abb9da.tar.gz
inkscape-0c9751c69184c11fea5f4f5e27074f1b21abb9da.zip
CMake: Prefer to install the genuine /hicolor/index.theme file in MSYS2 installs
This avoids the issues hiughlighted by su_v in https://bugs.launchpad.net/inkscape/+bug/1659336/comments/5 (bzr r15581)
Diffstat (limited to 'CMakeScripts')
-rw-r--r--CMakeScripts/InstallMSYS2.cmake7
1 files changed, 4 insertions, 3 deletions
diff --git a/CMakeScripts/InstallMSYS2.cmake b/CMakeScripts/InstallMSYS2.cmake
index 3cfc9c20c..63c6f0c4c 100644
--- a/CMakeScripts/InstallMSYS2.cmake
+++ b/CMakeScripts/InstallMSYS2.cmake
@@ -159,9 +159,10 @@ if(WIN32)
PATTERN CMakeLists.txt EXCLUDE
PATTERN *.am EXCLUDE)
- # Generate a dummy file in hicolor/index.theme to avoid bug 1635207
- file(GENERATE OUTPUT ${CMAKE_INSTALL_PREFIX}/share/icons/hicolor/index.theme
- CONTENT "[Icon Theme]\nName=hicolor\nDirectories=")
+ # Install hicolor/index.theme to avoid bug 1635207
+ install(FILES
+ ${MINGW_PATH}/share/icons/hicolor/index.theme
+ DESTINATION ${CMAKE_INSTALL_PREFIX}/share/icons/hicolor)
install(DIRECTORY ${MINGW_PATH}/share/icons/Adwaita
DESTINATION ${CMAKE_INSTALL_PREFIX}/share/icons)