Skip to content

Commit 3877c55

Browse files
Make sure SDL linker options are used for pybind11 extension as well
1 parent 1d9b29b commit 3877c55

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

dpctl/tensor/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,5 +49,7 @@ target_include_directories(${python_module_name}
4949
${CMAKE_CURRENT_SOURCE_DIR}/libtensor/include
5050
${CMAKE_CURRENT_SOURCE_DIR}/libtensor/source/
5151
)
52+
set(_linker_options "LINKER:${DPCTL_LDFLAGS}")
53+
target_link_options(${python_module_name} PRIVATE ${_linker_options})
5254
add_dependencies(${python_module_name} _dpctl4pybind11_deps)
5355
install(TARGETS ${python_module_name} DESTINATION "dpctl/tensor")

0 commit comments

Comments
 (0)