Skip to content

Commit

Permalink
Qt6: Fix @rpath bug on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
tresf committed May 18, 2024
1 parent 82a3aa6 commit 513b0ae
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cmake/apple/MacDeployQt.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ if(CPACK_DEBUG)
set(COMMAND_ECHO STDOUT)
endif()

# Qt6: Fix @rpath bug https://github.com/orgs/Homebrew/discussions/2823
include(CreateSymlink)
get_filename_component(QTBIN "${CPACK_QMAKE_EXECUTABLE}" DIRECTORY)
get_filename_component(QTDIR "${QTBIN}" DIRECTORY)
create_symlink("${QTDIR}/lib" "${CPACK_TEMPORARY_INSTALL_DIRECTORY}/lib")

execute_process(COMMAND convert
"${CPACK_CURRENT_SOURCE_DIR}/*.png"
"${CPACK_CURRENT_BINARY_DIR}/background.tiff"
Expand Down

0 comments on commit 513b0ae

Please sign in to comment.