summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CheckSourceCompiles/RunCMakeTest.cmake
blob: 2ed3e3619f2b11c89252d8b0aa0ac456002936c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
include(RunCMake)

run_cmake(NotEnabledLanguage)
run_cmake(NonExistentLanguage)
run_cmake(UnknownArgument)

run_cmake(CheckCSourceCompiles)
run_cmake(CheckCXXSourceCompiles)
run_cmake(CheckSourceCompilesC)
run_cmake(CheckSourceCompilesCXX)

if (APPLE)
  run_cmake(CheckOBJCSourceCompiles)
  run_cmake(CheckOBJCXXSourceCompiles)
  run_cmake(CheckSourceCompilesOBJC)
  run_cmake(CheckSourceCompilesOBJCXX)
endif()

if (CMAKE_Fortran_COMPILER_ID)
  run_cmake(CheckSourceCompilesFortran)
endif()

if (CMake_TEST_CUDA)
  run_cmake(CheckSourceCompilesCUDA)
endif()

if(CMake_TEST_ISPC)
  run_cmake(CheckSourceCompilesISPC)
endif()

if(CMake_TEST_HIP)
  run_cmake(CheckSourceCompilesHIP)
endif()

if(CMake_TEST_Swift)
  run_cmake(CheckSourceCompilesSwift)
endif()