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