summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CheckCompilerFlag/RunCMakeTest.cmake
blob: 81429a66c5f0be33f04f4168d35421c48e0dd980 (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
38
include(RunCMake)

run_cmake(NotEnabledLanguage)
run_cmake(NonExistentLanguage)

run_cmake(CheckCCompilerFlag)
run_cmake(CheckCXXCompilerFlag)
run_cmake(CheckCompilerFlagC)
run_cmake(CheckCompilerFlagCXX)

if (APPLE)
  run_cmake(CheckCompilerFlagOBJC)
  run_cmake(CheckCompilerFlagOBJCXX)
endif()

if (CMAKE_Fortran_COMPILER_ID)
  run_cmake(CheckCompilerFlagFortran)
endif()

if (CMake_TEST_CUDA)
  run_cmake(CheckCompilerFlagCUDA)
endif()

if(CMake_TEST_ISPC)
  run_cmake(CheckCompilerFlagISPC)
endif()

if(CMake_TEST_HIP)
  run_cmake(CheckCompilerFlagHIP)
endif()

if(APPLE)
  run_cmake(HeaderpadWorkaround)
endif()

if(CMake_TEST_Swift)
  run_cmake(CheckCompilerFlagSwift)
endif()