From 31e70b058a7bf8793a7def5e25742187d8225a96 Mon Sep 17 00:00:00 2001 From: Peter Willendrup Date: Fri, 19 Jul 2024 17:16:37 +0200 Subject: [PATCH] Don't attempt installing pixmaps and launchers on macOS -> breaks github test runs etc Also, I think the best would be to honour CMAKE_INSTALL_PREFIX ${CMAKE_INSTALL_PREFIX}/share/pixmaps ought to give /usr/share/pixmaps on Debian --- tools/Python/mcgui/CMakeLists.txt | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/tools/Python/mcgui/CMakeLists.txt b/tools/Python/mcgui/CMakeLists.txt index 6c60f86df..d51fbe5aa 100644 --- a/tools/Python/mcgui/CMakeLists.txt +++ b/tools/Python/mcgui/CMakeLists.txt @@ -111,11 +111,12 @@ if(NOT WINDOWS) PROGRAMS "${WORK}/${P}gui" DESTINATION ${DEST_BINDIR} ) - - # Install desktop entry - install(FILES "${WORK}/${FLAVOR}-${MCCODE_VERSION}-py.desktop" DESTINATION /usr/share/applications ) - # Install icon - install(FILES "${FLAVOR}-py.png" DESTINATION /usr/share/pixmaps/) + if (NOT DARWIN) + # Install desktop entry + install(FILES "${WORK}/${FLAVOR}-${MCCODE_VERSION}-py.desktop" DESTINATION /usr/share/applications ) + # Install icon + install(FILES "${FLAVOR}-py.png" DESTINATION /usr/share/pixmaps/) + endif() endif()