1 include(${CMAKE_ROOT}/Modules/CMakeDetermineCompiler.cmake)
3 if(NOT CMAKE_CLC_COMPILER)
4 find_program(CMAKE_CLC_COMPILER NAMES clang)
6 mark_as_advanced(CMAKE_CLC_COMPILER)
8 if(NOT CMAKE_CLC_ARCHIVE)
9 find_program(CMAKE_CLC_ARCHIVE NAMES llvm-link)
11 mark_as_advanced(CMAKE_CLC_ARCHIVE)
13 set(CMAKE_CLC_COMPILER_ENV_VAR "CLC_COMPILER")
14 set(CMAKE_CLC_ARCHIVE_ENV_VAR "CLC_LINKER")
15 find_file(clc_comp_in CMakeCLCCompiler.cmake.in PATHS ${CMAKE_ROOT}/Modules ${CMAKE_MODULE_PATH})
16 # configure all variables set in this file
17 configure_file(${clc_comp_in} ${CMAKE_PLATFORM_INFO_DIR}/CMakeCLCCompiler.cmake @ONLY)
18 mark_as_advanced(clc_comp_in)