You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
588 B
33 lines
588 B
include(RunCMake)
|
|
|
|
run_cmake(NotEnabledLanguage)
|
|
run_cmake(NonExistentLanguage)
|
|
|
|
run_cmake(CheckCCompilerFlag)
|
|
run_cmake(CheckCXXCompilerFlag)
|
|
|
|
if (APPLE)
|
|
run_cmake(CheckOBJCCompilerFlag)
|
|
run_cmake(CheckOBJCXXCompilerFlag)
|
|
endif()
|
|
|
|
if (CMAKE_Fortran_COMPILER_ID)
|
|
run_cmake(CheckFortranCompilerFlag)
|
|
endif()
|
|
|
|
if (CMake_TEST_CUDA)
|
|
run_cmake(CheckCUDACompilerFlag)
|
|
endif()
|
|
|
|
if(CMake_TEST_ISPC)
|
|
run_cmake(CheckISPCCompilerFlag)
|
|
endif()
|
|
|
|
if(CMake_TEST_HIP)
|
|
run_cmake(CheckHIPCompilerFlag)
|
|
endif()
|
|
|
|
if(APPLE)
|
|
run_cmake_with_options(HeaderpadWorkaround --debug-trycompile)
|
|
endif()
|