mirror of
https://github.com/Kitware/CMake.git
synced 2026-11-06 13:27:09 +00:00
Add experimental support for SYCL under an experimental gate. The IntelLLVM and Adaptivecpp compilers are recognized, as well as upstream Clang with libsycl support. Fixes: #27219, #27905
12 lines
417 B
CMake
12 lines
417 B
CMake
enable_testing()
|
|
function(sycl_add_runtime_test name target)
|
|
add_test(NAME "${name}" COMMAND "${target}")
|
|
set_tests_properties("${name}" PROPERTIES SKIP_RETURN_CODE 77 TIMEOUT 30)
|
|
endfunction()
|
|
|
|
function(sycl_not_supported reason)
|
|
add_test(NAME NotSupported
|
|
COMMAND "${CMAKE_COMMAND}" -E echo "SKIP: ${reason}")
|
|
set_tests_properties(NotSupported PROPERTIES SKIP_REGULAR_EXPRESSION "^SKIP:")
|
|
endfunction()
|