64ac736ec5
Former-commit-id: f3cc9b82f3e5bd8f0fd3ebc098f789556b44e9cd
14 lines
470 B
CMake
14 lines
470 B
CMake
# 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)
|
|
elseif( "${CMAKE_CXX_COMPILER_ID}" MATCHES "Intel" )
|
|
set(LLVM_COMPILER_IS_GCC_COMPATIBLE ON)
|
|
endif()
|
|
endif()
|