Fix remaining hard-coded install dirs
See https://github.com/Martchus/cpp-utilities/issues/17#issuecomment-596420331
This commit is contained in:
parent
e241d718ce
commit
6273b42643
|
@ -125,14 +125,14 @@ if (NOT META_NO_INSTALL_TARGETS AND ENABLE_INSTALL_TARGETS)
|
||||||
foreach (DESKTOP_FILE ${DESKTOP_FILES})
|
foreach (DESKTOP_FILE ${DESKTOP_FILES})
|
||||||
install(
|
install(
|
||||||
FILES "${DESKTOP_FILE}"
|
FILES "${DESKTOP_FILE}"
|
||||||
DESTINATION "share/applications"
|
DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/applications"
|
||||||
COMPONENT desktop)
|
COMPONENT desktop)
|
||||||
endforeach ()
|
endforeach ()
|
||||||
|
|
||||||
foreach (ICON_FILE ${ICON_FILES})
|
foreach (ICON_FILE ${ICON_FILES})
|
||||||
install(
|
install(
|
||||||
FILES "${ICON_FILE}"
|
FILES "${ICON_FILE}"
|
||||||
DESTINATION "share/icons/hicolor/scalable/apps"
|
DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor/scalable/apps"
|
||||||
COMPONENT desktop)
|
COMPONENT desktop)
|
||||||
endforeach ()
|
endforeach ()
|
||||||
if (NOT TARGET install-desktop)
|
if (NOT TARGET install-desktop)
|
||||||
|
|
Loading…
Reference in New Issue