aboutsummaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2023-09-14 22:22:03 -0500
committerluigi1111 <luigi1111w@gmail.com>2023-09-14 22:22:03 -0500
commitd10e4d1e50f3541e7558f2c3c7196f5a74aeab04 (patch)
treeec8ffc9e0fda6d8ecbe05fc1b62aced01dc96ca7 /cmake
parent705cc6573faed629cca2dbc3a095b8cf60bfc6f7 (diff)
parent5345dcc11b4d3ca39a438bd05dedfd42a21ff240 (diff)
downloadmonzero-gui-d10e4d1e50f3541e7558f2c3c7196f5a74aeab04.tar.gz
monzero-gui-d10e4d1e50f3541e7558f2c3c7196f5a74aeab04.tar.xz
monzero-gui-d10e4d1e50f3541e7558f2c3c7196f5a74aeab04.zip
Merge pull request #4150
5345dcc cmake: add install_name_tool to fix svg rendering (selsta)
Diffstat (limited to 'cmake')
-rw-r--r--cmake/Deploy.cmake7
1 files changed, 6 insertions, 1 deletions
diff --git a/cmake/Deploy.cmake b/cmake/Deploy.cmake
index 7a273965..eecd15d3 100644
--- a/cmake/Deploy.cmake
+++ b/cmake/Deploy.cmake
@@ -17,7 +17,12 @@ if(APPLE OR (WIN32 AND NOT STATIC))
add_custom_command(TARGET deploy
POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy ${_qt_svg_dylib} $<TARGET_FILE_DIR:monero-wallet-gui>/../PlugIns/imageformats/
- COMMENT "Copying libqsvg.dylib"
+ COMMAND ${CMAKE_INSTALL_NAME_TOOL} -change "${CMAKE_PREFIX_PATH}/lib/QtGui.framework/Versions/5/QtGui" "@executable_path/../Frameworks/QtGui.framework/Versions/5/QtGui" $<TARGET_FILE_DIR:monero-wallet-gui>/../PlugIns/imageformats/libqsvg.dylib
+ COMMAND ${CMAKE_INSTALL_NAME_TOOL} -change "${CMAKE_PREFIX_PATH}/lib/QtWidgets.framework/Versions/5/QtWidgets" "@executable_path/../Frameworks/QtWidgets.framework/Versions/5/QtWidgets" $<TARGET_FILE_DIR:monero-wallet-gui>/../PlugIns/imageformats/libqsvg.dylib
+ COMMAND ${CMAKE_INSTALL_NAME_TOOL} -change "${CMAKE_PREFIX_PATH}/lib/QtSvg.framework/Versions/5/QtSvg" "@executable_path/../Frameworks/QtSvg.framework/Versions/5/QtSvg" $<TARGET_FILE_DIR:monero-wallet-gui>/../PlugIns/imageformats/libqsvg.dylib
+ COMMAND ${CMAKE_INSTALL_NAME_TOOL} -change "${CMAKE_PREFIX_PATH}/lib/QtCore.framework/Versions/5/QtCore" "@executable_path/../Frameworks/QtCore.framework/Versions/5/QtCore" $<TARGET_FILE_DIR:monero-wallet-gui>/../PlugIns/imageformats/libqsvg.dylib
+ COMMENT "Copying libqsvg.dylib, running install_name_tool"
+
)
endif()