mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 14:54:20 +01:00
15 lines
592 B
CMake
15 lines
592 B
CMake
|
option(INTEL_CC "Use the Intel compiler." OFF)
|
||
|
|
||
|
if (INTEL_CC)
|
||
|
find_program(CMAKE_C_COMPILER NAMES icc)
|
||
|
find_program(CMAKE_CXX_COMPILER NAMES icpc)
|
||
|
find_program(CMAKE_AR NAMES xiar)
|
||
|
find_program(CMAKE_LINKER NAMES xild)
|
||
|
|
||
|
if (CMAKE_C_COMPILER MATCHES CMAKE_C_COMPILER-NOTFOUND OR
|
||
|
CMAKE_CXX_COMPILER MATCHES CMAKE_CXX_COMPILER-NOTFOUND OR
|
||
|
CMAKE_AR MATCHES CMAKE_AR-NOTFOUND OR
|
||
|
CMAKE_LINKER MATCHES CMAKE_LINKER-NOTFOUND)
|
||
|
message(FATAL_ERROR "Cannot find Intel compiler. You may need to run `. /opt/intel/bin/compilervars.sh intel64'")
|
||
|
endif ()
|
||
|
endif (INTEL_CC)
|