Install: kge.png honors --prefix

The icon destination was ${CMAKE_INSTALL_PREFIX}/share/icons, fixed at
configure time, so cmake --install --prefix DIR still wrote it under
/usr/local and failed without root. Use CMAKE_INSTALL_DATAROOTDIR.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-17 15:02:51 -08:00
co-authored by Claude Opus 5.5
parent 4a020df74e
commit c52a54cc59
+1 -1
View File
@@ -513,7 +513,7 @@ if (BUILD_GUI)
endif ()
# Install kge man page only when GUI is built
install(FILES docs/kge.1 DESTINATION ${CMAKE_INSTALL_MANDIR}/man1)
install(FILES kge.png DESTINATION ${CMAKE_INSTALL_PREFIX}/share/icons)
install(FILES kge.png DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/icons)
if (UNIX AND NOT APPLE)
install(FILES kge.desktop DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/applications)
install(FILES kge.png DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/pixmaps)