Skip to content

Commit

Permalink
Preserve link path when installing the shared library generated with …
Browse files Browse the repository at this point in the history
…nanobind
  • Loading branch information
francesco-ballarin committed Nov 15, 2023
1 parent babe0b5 commit 67d48d3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rbnicsx/_cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,5 @@ target_include_directories(rbnicsx_cpp PRIVATE ${PETSC4PY_INCLUDE_DIR})
target_link_libraries(rbnicsx_cpp PRIVATE PkgConfig::PETSC)

# Install the compiled library to the _cpp subdirectory
set_target_properties(rbnicsx_cpp PROPERTIES INSTALL_RPATH_USE_LINK_PATH TRUE)
install(TARGETS rbnicsx_cpp LIBRARY DESTINATION rbnicsx/_cpp)

0 comments on commit 67d48d3

Please sign in to comment.