summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CheckSourceRuns/RunCMakeTest.cmake
blob: 64cecfc0e51667588f8e94b3ac177fb8e7b0f461 (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
include(RunCMake)

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

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_HIP)
  run_cmake(CheckSourceRunsHIP)
endif()