all repos — mgba @ 23d9eba36d53c0be84a8633dc90be48544559c83

mGBA Game Boy Advance Emulator

CMake: Replace desktop file installing code with just the file
Vicki Pfau vi@endrift.com
Tue, 24 Nov 2020 00:43:19 -0800
commit

23d9eba36d53c0be84a8633dc90be48544559c83

parent

7d2020910d3603c8555e08dcfd50aeb8e85fd896

1 files changed, 1 insertions(+), 4 deletions(-)

jump to
M src/platform/qt/CMakeLists.txtsrc/platform/qt/CMakeLists.txt

@@ -310,10 +310,7 @@ install(TARGETS ${BINARY_NAME}-qt

RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT ${BINARY_NAME}-qt BUNDLE DESTINATION Applications COMPONENT ${BINARY_NAME}-qt) if(UNIX AND NOT APPLE) - find_program(DESKTOP_FILE_INSTALL desktop-file-install) - if(DESKTOP_FILE_INSTALL) - install(CODE "execute_process(COMMAND ${DESKTOP_FILE_INSTALL} \"${CMAKE_SOURCE_DIR}/res/mgba-qt.desktop\" --dir \"\$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_DATADIR}/applications/\")" COMPONENT ${BINARY_NAME}-qt) - endif() + install(FILES ${CMAKE_SOURCE_DIR}/res/mgba-qt.desktop DESTINATION share/applications COMPONENT ${BINARY_NAME}-qt) endif() if(UNIX) install(FILES ${CMAKE_SOURCE_DIR}/doc/mgba-qt.6 DESTINATION ${MANDIR}/man6 COMPONENT ${BINARY_NAME}-qt)