summaryrefslogtreecommitdiffstats
path: root/Modules/Compiler/Intel.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-08-21 13:54:42 (GMT)
committerBrad King <brad.king@kitware.com>2009-08-21 13:54:42 (GMT)
commit2ce6a7d0fbbd70c33592a98d204d8db7fad9a895 (patch)
treec8c015c0894c56a2ce5742a49dcf754ea96099d8 /Modules/Compiler/Intel.cmake
parent8f84ec9ad7fe76e3767b3b3351a8b46f46b199a3 (diff)
downloadCMake-2ce6a7d0fbbd70c33592a98d204d8db7fad9a895.zip
CMake-2ce6a7d0fbbd70c33592a98d204d8db7fad9a895.tar.gz
CMake-2ce6a7d0fbbd70c33592a98d204d8db7fad9a895.tar.bz2
Split Intel compiler information files
This moves platform-independent Intel compiler flags into separate "Compiler/Intel-<lang>.cmake" modules. Platform-specific flags are left untouched.
Diffstat (limited to 'Modules/Compiler/Intel.cmake')
-rw-r--r--Modules/Compiler/Intel.cmake11
1 files changed, 11 insertions, 0 deletions
diff --git a/Modules/Compiler/Intel.cmake b/Modules/Compiler/Intel.cmake
new file mode 100644
index 0000000..030f2c0
--- /dev/null
+++ b/Modules/Compiler/Intel.cmake
@@ -0,0 +1,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)