Skip to content
Snippets Groups Projects
Commit 077736af authored by AlQuemist's avatar AlQuemist Committed by Ammar Nejati
Browse files

MakeLib.cmake: add proper RPATH to libraries when BA_PY_PACKAGE = ON

parent 419b619b
No related branches found
No related tags found
1 merge request!1558Improvements to CI
......@@ -36,7 +36,7 @@ function(MakeLib name lib tmpdir withPython)
# see 'Dynamic-Link Library Search Order'
# <https://docs.microsoft.com/en-us/windows/win32/dlls/dynamic-link-library-search-order>
if(APPLE AND BA_APPLE_BUNDLE)
if(APPLE AND (BA_APPLE_BUNDLE OR BA_PY_PACKAGE))
# Add proper RPATHs as hints to load the dependencies at run-time
set(link_flags "-Wl,-rpath,@loader_path -Wl,-rpath,@loader_path/extra")
set_target_properties(${lib} PROPERTIES LINK_FLAGS ${link_flags})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment