1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-04-29 23:29:41 +02:00

Merge pull request from Be-ing/macos_dylibs

CMake: fix copying of dylibs on macOS

Signed-off-by: Emily Mabrey <emabrey@tenacityaudio.org>
Reference-to: https://github.com/tenacityteam/tenacity/pull/610
This commit is contained in:
Emily Mabrey 2021-09-15 17:47:16 -04:00 committed by GitHub
commit 5ec9c7abe6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1191,7 +1191,7 @@ elseif( CMAKE_SYSTEM_NAME MATCHES "Darwin" )
add_custom_command(
TARGET ${TARGET}
COMMAND ${CMAKE_COMMAND}
-D SRC="${_EXEDIR}/${AUDACITY_NAME}Z"
-D SRC="${_EXEDIR}/${AUDACITY_NAME}"
-D DST="${_PKGLIB}"
-D WXWIN="${_SHARED_PROXY_BASE_PATH}/$<CONFIG>"
-P "${AUDACITY_MODULE_PATH}/CopyLibs.cmake"
@ -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}/"