From 9a48dffa97c1a0186fb5735d8f638c144d7edb9a Mon Sep 17 00:00:00 2001 From: Be Date: Mon, 13 Sep 2021 01:26:06 -0500 Subject: [PATCH] CMake: copy dylibs into macOS bundle Somehow this was broken by https://github.com/tenacityteam/tenacity/pull/228 I don't know how it ever worked before without this. Signed-off-by: Be --- src/CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 44991fba9..99cb9a5ea 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1349,6 +1349,13 @@ else() DESTINATION "." RESOURCE DESTINATION "${_APPDIR}/Resources" ) + + set_target_properties(${TARGET} PROPERTIES + MACOSX_BUNDLE true + ) + install(CODE " + include(BundleUtilities) + fixup_bundle( \${CMAKE_INSTALL_PREFIX}/Tenacity.app \"\" \"${CMAKE_PREFIX_PATH}/lib\" )") elseif( WIN32 ) install( DIRECTORY "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/"