--- share/CMakeLists.txt.orig 2018-02-07 18:33:55 UTC +++ share/CMakeLists.txt @@ -5,9 +5,8 @@ foreach(size 32x32 48x48 64x64 128x128 2 install(FILES icons/hicolor/${size}/mimetypes/application-x-st-disk-image.png DESTINATION ${ICONDIR}/${size}/mimetypes) foreach(type vnd.msa vnd.fastcopy x-stx) - install(CODE "execute_process(COMMAND \"${CMAKE_COMMAND}\" -E create_symlink - application-x-st-disk-image.png - \$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/${ICONDIR}/${size}/mimetypes/application-${type}-disk-image.png) + install(CODE "execute_process(COMMAND \"${CMAKE_COMMAND}\" -E create_symlink application-x-st-disk-image.png application-${type}-disk-image.png + WORKING_DIRECTORY \$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/${ICONDIR}/${size}/mimetypes) ") endforeach() endforeach() @@ -17,9 +16,8 @@ install(FILES icons/hicolor/scalable/app install(FILES icons/hicolor/scalable/mimetypes/application-x-st-disk-image.svg DESTINATION ${ICONDIR}/scalable/mimetypes) foreach(type vnd.msa vnd.fastcopy x-stx) - install(CODE "execute_process(COMMAND \"${CMAKE_COMMAND}\" -E create_symlink - application-x-st-disk-image.svg - \$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/${ICONDIR}/scalable/mimetypes/application-${type}-disk-image.svg) + install(CODE "execute_process(COMMAND \"${CMAKE_COMMAND}\" -E create_symlink application-x-st-disk-image.svg application-${type}-disk-image.svg + WORKING_DIRECTORY \$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/${ICONDIR}/scalable/mimetypes) ") endforeach() install(FILES mime/packages/hatari.xml DESTINATION share/mime/packages)