Skip to content

Commit ad8ed63

Browse files
Merge pull request #1112 from IntelPython/add-pxi-dependencies
Make dependency of _usmarray.pyx on *.pxi files explicit in cmake
2 parents cdf7b2f + 9da8978 commit ad8ed63

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
@@ -5,6 +5,13 @@ foreach(_cy_file ${_cython_sources})
55
target_include_directories(${_trgt} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include)
66
endforeach()
77

8+
add_custom_target(_usmarray_deps SOURCES
9+
${CMAKE_CURRENT_SOURCE_DIR}/_slicing.pxi
10+
${CMAKE_CURRENT_SOURCE_DIR}/_types.pxi
11+
${CMAKE_CURRENT_SOURCE_DIR}/_stride_utils.pxi
12+
)
13+
add_dependencies(_usmarray _usmarray_deps)
14+
815
add_custom_target(_dpctl4pybind11_deps
916
DEPENDS
1017
_usmarray_copy_capi_include

0 commit comments

Comments
 (0)