File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -26,16 +26,18 @@ if(APPLE OR (WIN32 AND NOT STATIC))
2626 )
2727 endif ()
2828
29- # libbost_filesyste-mt.dylib has a dependency on libboost_atomic-mt.dylib, maydeployqt does not copy it by itself
30- find_package (Boost COMPONENTS atomic )
31- get_target_property (BOOST_ATOMIC_LIB_PATH Boost::atomic LOCATION)
32- if (EXISTS ${BOOST_ATOMIC_LIB_PATH} )
33- add_custom_command (TARGET deploy
34- POST_BUILD
35- COMMAND ${CMAKE_COMMAND } -E copy "${BOOST_ATOMIC_LIB_PATH} " "$<TARGET_FILE_DIR :monero -wallet -gui >/../Frameworks/"
36- COMMENT "Copying libboost_atomic-mt.dylib"
37- )
38- endif ()
29+ # Copy Boost dylibs that macdeployqt doesn't pick up
30+ set (_boost_extras Boost::atomic Boost::container Boost::date_time)
31+ foreach (_tgt IN LISTS _boost_extras)
32+ if (TARGET ${_tgt} )
33+ add_custom_command (TARGET deploy POST_BUILD
34+ COMMAND ${CMAKE_COMMAND } -E copy
35+ "$<TARGET_FILE :${_tgt} >"
36+ "$<TARGET_FILE_DIR :monero -wallet -gui >/../Frameworks/"
37+ COMMENT "Copying $<TARGET_FILE_NAME :${_tgt} >"
38+ )
39+ endif ()
40+ endforeach ()
3941
4042 # Apple Silicon requires all binaries to be codesigned
4143 find_program (CODESIGN_EXECUTABLE NAMES codesign )
You can’t perform that action at this time.
0 commit comments