Skip to content

Commit 87c14e7

Browse files
Support DCPTL_WITH_REDIST for pybind11 extensions in dpctl.tensor
1 parent c3a77fb commit 87c14e7

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

dpctl/tensor/CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,5 +311,12 @@ foreach(python_module_name ${_py_trgts})
311311
# TODO: update source so they refernece individual libraries instead of
312312
# dpctl4pybind11.hpp. It will allow to simplify dependency tree
313313
target_link_libraries(${python_module_name} PRIVATE DpctlCAPI)
314+
if (DPCTL_WITH_REDIST)
315+
set_target_properties(
316+
${python_module_name}
317+
PROPERTIES
318+
INSTALL_RPATH "$ORIGIN/../../../.."
319+
)
320+
endif()
314321
install(TARGETS ${python_module_name} DESTINATION "dpctl/tensor")
315322
endforeach()

0 commit comments

Comments
 (0)