From c52a54cc591d908ff89a3ec5843f078284941528 Mon Sep 17 00:00:00 2001 From: "K. Isom" Date: Tue, 17 Nov 2026 15:02:51 -0800 Subject: [PATCH] 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 --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9d66706..e2ec879 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)