df2b667cc0bff6a012addeca9389e12b5f58c508
[platform/upstream/cmake.git] / Tests / RunCMake / CheckCompilerFlag / RunCMakeTest.cmake
1 include(RunCMake)
2
3 run_cmake(NotEnabledLanguage)
4 run_cmake(NonExistentLanguage)
5
6 run_cmake(CheckCCompilerFlag)
7 run_cmake(CheckCXXCompilerFlag)
8
9 if (APPLE)
10   run_cmake(CheckOBJCCompilerFlag)
11   run_cmake(CheckOBJCXXCompilerFlag)
12 endif()
13
14 if (CMAKE_Fortran_COMPILER_ID)
15   run_cmake(CheckFortranCompilerFlag)
16 endif()
17
18 if (CMake_TEST_CUDA)
19   run_cmake(CheckCUDACompilerFlag)
20 endif()
21
22 if(CMake_TEST_ISPC)
23   run_cmake(CheckISPCCompilerFlag)
24 endif()
25
26 if(CMake_TEST_HIP)
27   run_cmake(CheckHIPCompilerFlag)
28 endif()
29
30 if(APPLE)
31   run_cmake_with_options(HeaderpadWorkaround --debug-trycompile)
32 endif()