summaryrefslogtreecommitdiffstats
path: root/Modules/Compiler/Intel.cmake
blob: 030f2c09064ca07ddece16e0cc6c5a83861d1b68 (plain)
1
2
3
4
5
6
7
8
9
10
11
if(NOT XIAR)
  set(_intel_xair_hints)
  foreach(lang C CXX Fortran)
    if(IS_ABSOLUTE "${CMAKE_${lang}_COMPILER}")
      get_filename_component(_hint "${CMAKE_${lang}_COMPILER}" PATH)
      list(APPEND _intel_xair_hints ${_hint})
    endif()
  endforeach()
  find_program(XIAR NAMES xiar HINTS ${_intel_xair_hints})
  mark_as_advanced(XIAR)
endif(NOT XIAR)