File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -140,9 +140,11 @@ set(CMAKE_INSTALL_RPATH "$ORIGIN")
140
140
141
141
function (build_dpctl_ext _trgt _src _dest )
142
142
add_cython_target (${_trgt} ${_src} CXX OUTPUT_VAR _generated_src )
143
+ set (_cythonize_trgt "${_trgt} _cythonize_pyx" )
144
+ add_custom_target (${_cythonize_trgt} DEPENDS ${_src} )
143
145
add_library (${_trgt} MODULE ${_generated_src} )
144
146
target_include_directories (${_trgt} PRIVATE ${NumPy_INCLUDE_DIR} ${DPCTL_INCLUDE_DIR} )
145
- add_dependencies (${_trgt} _build_time_create_dpctl_include_copy )
147
+ add_dependencies (${_trgt} _build_time_create_dpctl_include_copy ${_cythonize_trgt} )
146
148
if (DPCTL_GENERATE_COVERAGE )
147
149
target_compile_definitions (${_trgt} PRIVATE CYTHON_TRACE=1 CYTHON_TRACE_NOGIL=1 )
148
150
target_compile_options (${_trgt} PRIVATE -fno-sycl-use-footer )
You can’t perform that action at this time.
0 commit comments