Skip to content

Commit

Permalink
Fix macos linking with @loader path (#114)
Browse files Browse the repository at this point in the history
* add manifest

* update manifest

* exclude __pycache__ from sdist

* add loader path

* fix termination of cmake it
  • Loading branch information
hmacdope authored Oct 19, 2022
1 parent 65b37cc commit 6c5d7c1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions distopia/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,9 @@ add_cython_target(_distopia CXX PY3)
add_library(_distopia MODULE ${_distopia})
python_extension_module(_distopia)
target_link_libraries(_distopia libdistopia)
if(APPLE)
set_target_properties(_distopia PROPERTIES INSTALL_RPATH
"@loader_path")
endif()
# set_target_properties(_distopia PROPERTIES INSTALL_RPATH_USE_LINK_PATH FALSE)
install(TARGETS _distopia LIBRARY DESTINATION distopia)

0 comments on commit 6c5d7c1

Please sign in to comment.