Skip to content

Commit cfdca27

Browse files
Support DCPTL_WITH_REDIST for pybind11 extensions in dpctl.tensor
1 parent 83fd6e2 commit cfdca27

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
@@ -284,5 +284,12 @@ foreach(python_module_name ${_py_trgts})
284284
# TODO: update source so they refernece individual libraries instead of
285285
# dpctl4pybind11.hpp. It will allow to simplify dependency tree
286286
target_link_libraries(${python_module_name} PRIVATE DpctlCAPI)
287+
if (DPCTL_WITH_REDIST)
288+
set_target_properties(
289+
${python_module_name}
290+
PROPERTIES
291+
INSTALL_RPATH "$ORIGIN/../../../.."
292+
)
293+
endif()
287294
install(TARGETS ${python_module_name} DESTINATION "dpctl/tensor")
288295
endforeach()

0 commit comments

Comments
 (0)