llvm.org GIT mirror llvm / 29150e4
cmake: don't set LLVM_COMPILER_IS_GCC_COMPATIBLE when using clang-cl Tip-of-tree CMake has become clang-cl aware [1]. In this case, CMAKE_CXX_COMPILER_ID will still be Clang, but MSVC will be true. [1] See http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=3d8356d4 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192139 91177308-0d34-0410-b5e6-96231b3b80d8 Hans Wennborg 6 years ago
1 changed file(s) with 2 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
77
88 if( CMAKE_COMPILER_IS_GNUCXX )
99 set(LLVM_COMPILER_IS_GCC_COMPATIBLE ON)
10 elseif( MSVC )
11 set(LLVM_COMPILER_IS_GCC_COMPATIBLE OFF)
1012 elseif( "${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang" )
1113 set(LLVM_COMPILER_IS_GCC_COMPATIBLE ON)
1214 endif()