llvm.org GIT mirror llvm / 2ec48fc cmake / modules / DetermineGCCCompatible.cmake
2ec48fc

Tree @2ec48fc (Download .tar.gz)

DetermineGCCCompatible.cmake @2ec48fcraw · history · blame

# 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()