From edccd16541705cd31f114507dcaffeb5361f03c6 Mon Sep 17 00:00:00 2001 From: Icenowy Zheng Date: Mon, 27 May 2024 23:37:10 +0800 Subject: [PATCH] fix Linux installation creating broken superslicer-gcodeviewer symlink (#4208) Currently the symlink target is hardcoded as slic3r, which is not the binary name of SuperSlicer. Change it to use the variable for application command name instead. Signed-off-by: Icenowy Zheng --- src/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 547d59d576e..bf721a76351 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -303,5 +303,5 @@ else () install(TARGETS Slic3r RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}") # Install the symlink for gcodeviewer - install(CODE "execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink slic3r ${GCODEVIEWER_APP_CMD} WORKING_DIRECTORY \$ENV{DESTDIR}/${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_BINDIR})") + install(CODE "execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink ${SLIC3R_APP_CMD} ${GCODEVIEWER_APP_CMD} WORKING_DIRECTORY \$ENV{DESTDIR}/${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_BINDIR})") endif ()