Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the packaging issue on macOS M1 chips #8496

Merged
merged 1 commit into from
May 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions cmake/dist/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -197,11 +197,11 @@ if (APPLE)
endfunction(gp_item_default_embedded_path_override)

include (BundleUtilities)
# The dir /usr/local/lib is added to address the packaging issue for Homebrew
# as reported https://github.com/GenericMappingTools/gmt/issues/6025.
# The directories /usr/local/lib;/opt/homebrew/lib are added to address the
# packaging issue for Homebrew as reported https://github.com/GenericMappingTools/gmt/issues/6025.
# The root cause is unclear, possibly a cmake issue.
# We should try to remove it when new cmake releases are available.
fixup_bundle(\"\${CMAKE_INSTALL_PREFIX}/${GMT_BINDIR}/gmt${CMAKE_EXECUTABLE_SUFFIX}\" \"\${CMAKE_INSTALL_PREFIX}/${GMT_LIBDIR}/gmt${CMAKE_EXECUTABLE_SUFFIX}/plugins/${GMT_SUPPL_LIB_NAME}.so\" \"/usr/local/lib\")
fixup_bundle(\"\${CMAKE_INSTALL_PREFIX}/${GMT_BINDIR}/gmt${CMAKE_EXECUTABLE_SUFFIX}\" \"\${CMAKE_INSTALL_PREFIX}/${GMT_LIBDIR}/gmt${CMAKE_EXECUTABLE_SUFFIX}/plugins/${GMT_SUPPL_LIB_NAME}.so\" \"/usr/local/lib;/opt/homebrew/lib\")
endif ()
" COMPONENT Runtime)
endif (APPLE)
Expand Down
Loading