Skip to content

Commit f36ff23

Browse files
Alcpzjoeatodd
authored andcommitted
[SYCL][COMPAT] Added dependency to SYCLUnitTests target
1 parent ea4902f commit f36ff23

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

sycl/cmake/modules/AddSYCLLibraryUnitTest.cmake

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ macro(add_sycl_library_unittest test_suite_name sycl_extra_flags)
3333
endforeach()
3434

3535
add_sycl_executable(
36-
${test_suite_name}
36+
# 'Tests' suffix needed by lit framework to detect the tests
37+
${test_suite_name}Tests
3738
OPTIONS
3839
${sycl_extra_flags}
3940
${INCLUDE_COMPILER_STRING}
@@ -48,7 +49,8 @@ macro(add_sycl_library_unittest test_suite_name sycl_extra_flags)
4849
SOURCES
4950
${ARGN}
5051
DEPENDANTS
51-
check-sycl-${test_suite_name})
52+
check-sycl-${test_suite_name}
53+
SYCLUnitTests)
5254

5355
endmacro()
5456

0 commit comments

Comments
 (0)