[clang][modules] Don't prevent translation of FW_Private includes when explicitly...
[llvm-project.git] / libclc / cmake / CMakeDetermineCLCCompiler.cmake
blob94d85d9e666adb46c6f879dbb7b1822d0f6122ba
1 include(${CMAKE_ROOT}/Modules/CMakeDetermineCompiler.cmake)
3 if(NOT CMAKE_CLC_COMPILER)
4   find_program(CMAKE_CLC_COMPILER NAMES clang)
5 endif()
6 mark_as_advanced(CMAKE_CLC_COMPILER)
8 if(NOT CMAKE_CLC_ARCHIVE)
9   find_program(CMAKE_CLC_ARCHIVE NAMES llvm-link)
10 endif()
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)