2015-09-29 22:33:58 +08:00
|
|
|
# Determine if the compiler has GCC-compatible command-line syntax.
|
|
|
|
|
|
|
|
if(NOT DEFINED LLVM_COMPILER_IS_GCC_COMPATIBLE)
|
|
|
|
if(CMAKE_COMPILER_IS_GNUCXX)
|
|
|
|
set(LLVM_COMPILER_IS_GCC_COMPATIBLE ON)
|
|
|
|
elseif( MSVC )
|
|
|
|
set(LLVM_COMPILER_IS_GCC_COMPATIBLE OFF)
|
|
|
|
elseif( "${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang" )
|
|
|
|
set(LLVM_COMPILER_IS_GCC_COMPATIBLE ON)
|
2017-01-27 07:50:18 +08:00
|
|
|
elseif( "${CMAKE_CXX_COMPILER_ID}" MATCHES "Intel" )
|
|
|
|
set(LLVM_COMPILER_IS_GCC_COMPATIBLE ON)
|
2015-09-29 22:33:58 +08:00
|
|
|
endif()
|
|
|
|
endif()
|