Skip to content

Commit

Permalink
Update PostprocessBundle.cmake to include /opt/homebrew/lib (#1425)
Browse files Browse the repository at this point in the history
* Update PostprocessBundle.cmake to include /opt/homebrew/lib

Homebrew on macOS arm64 lives in /opt/homebrew per default. Without this, libsharpyuv cannot be found during bundeling.
  • Loading branch information
telephono committed Sep 9, 2023
1 parent 55777b1 commit 2145081
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmake/modules/PostprocessBundle.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ file(GLOB_RECURSE extra_libs "${BUNDLE_PATH}/Contents/MacOS/*.dylib")
# makes it sometimes break on libraries that do weird things with @rpath. Specify
# equivalent search directories until https://gitlab.kitware.com/cmake/cmake/issues/16625
# is fixed and in our minimum CMake version.
set(extra_dirs "/usr/local/lib" "/lib" "/usr/lib")
set(extra_dirs "/opt/homebrew/lib" "/usr/local/lib" "/lib" "/usr/lib")

# BundleUtilities is overly verbose, so disable most of its messages
function(message)
Expand All @@ -47,4 +47,4 @@ endfunction()

include(BundleUtilities)
set(BU_CHMOD_BUNDLE_ITEMS ON)
fixup_bundle("${BUNDLE_PATH}" "${extra_libs}" "${extra_dirs}")
fixup_bundle("${BUNDLE_PATH}" "${extra_libs}" "${extra_dirs}")

0 comments on commit 2145081

Please sign in to comment.