all repos — mgba @ d01190bf90b52cf974e5072a5edc1e7eb6d784bd

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

d01190bf90b52cf974e5072a5edc1e7eb6d784bd

parent

1a694b0b56ac3ead10ff5dc281ee46985a593223

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

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

@@ -322,10 +322,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)