Skip to content

Commit c34e130

Browse files
authored
[SYCL][NFC] Fix dependency for SYCL add_sycl_executable macro (#2613)
Compiler toolchain includes more tools in addition to clang and sycl library.
1 parent 2c3908b commit c34e130

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sycl/cmake/modules/AddSYCLExecutable.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ macro(add_sycl_executable ARG_TARGET_NAME)
3434
BYPRODUCTS ${CMAKE_CURRENT_BINARY_DIR}/${ARG_TARGET_NAME}
3535
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
3636
COMMAND_EXPAND_LISTS)
37-
add_dependencies(${ARG_TARGET_NAME}_exec sycl clang)
37+
add_dependencies(${ARG_TARGET_NAME}_exec sycl-toolchain)
3838
foreach(_lib in ${ARG_LIBRARIES})
3939
if (TARGET _lib)
4040
add_dependencies(${ARG_TARGET_NAME}_exec _lib)

0 commit comments

Comments
 (0)