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
37 lines
722 B
CMake
37 lines
722 B
CMake
include(RunCMake)
|
|
|
|
run_cmake(NotEnabledLanguage)
|
|
run_cmake(NonExistentLanguage)
|
|
run_cmake(UnknownArgument)
|
|
|
|
run_cmake(RequiredFlags)
|
|
run_cmake(Issue27893)
|
|
|
|
run_cmake(CheckCSourceRuns)
|
|
run_cmake(CheckCXXSourceRuns)
|
|
run_cmake(CheckSourceRunsC)
|
|
run_cmake(CheckSourceRunsCXX)
|
|
|
|
if (APPLE)
|
|
run_cmake(CheckOBJCSourceRuns)
|
|
run_cmake(CheckOBJCXXSourceRuns)
|
|
run_cmake(CheckSourceRunsOBJC)
|
|
run_cmake(CheckSourceRunsOBJCXX)
|
|
endif()
|
|
|
|
if (CMAKE_Fortran_COMPILER_ID)
|
|
run_cmake(CheckSourceRunsFortran)
|
|
endif()
|
|
|
|
if (CMake_TEST_CUDA)
|
|
run_cmake(CheckSourceRunsCUDA)
|
|
endif()
|
|
|
|
if (CMake_TEST_SYCL)
|
|
run_cmake_with_options(CheckSourceRunsSYCL -Wno-experimental)
|
|
endif()
|
|
|
|
if (CMake_TEST_HIP)
|
|
run_cmake(CheckSourceRunsHIP)
|
|
endif()
|