Fix remaining hard-coded install dirs

See https://github.com/Martchus/cpp-utilities/issues/17#issuecomment-596420331
This commit is contained in:
Martchus 2020-03-09 10:45:12 +01:00
parent e241d718ce
commit 6273b42643
1 changed files with 2 additions and 2 deletions

View File

@ -125,14 +125,14 @@ if (NOT META_NO_INSTALL_TARGETS AND ENABLE_INSTALL_TARGETS)
foreach (DESKTOP_FILE ${DESKTOP_FILES})
install(
FILES "${DESKTOP_FILE}"
DESTINATION "share/applications"
DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/applications"
COMPONENT desktop)
endforeach ()
foreach (ICON_FILE ${ICON_FILES})
install(
FILES "${ICON_FILE}"
DESTINATION "share/icons/hicolor/scalable/apps"
DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor/scalable/apps"
COMPONENT desktop)
endforeach ()
if (NOT TARGET install-desktop)