Skip to content

Commit

Permalink
fix Linux installation creating broken superslicer-gcodeviewer symlink (
Browse files Browse the repository at this point in the history
#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 <[email protected]>
  • Loading branch information
Icenowy authored and supermerill committed May 28, 2024
1 parent a61b977 commit f579644
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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 ()

0 comments on commit f579644

Please sign in to comment.