diff options
author | Hans Wennborg <hans@hanshq.net> | 2013-10-07 22:03:23 +0000 |
---|---|---|
committer | Hans Wennborg <hans@hanshq.net> | 2013-10-07 22:03:23 +0000 |
commit | 29150e45fbc6cabda57b2bce1c447a84b9c779f0 (patch) | |
tree | 653623643cc3a5a05f148a053817c8e5ccbffbef | |
parent | 34e1444ebde9516422f08d8ddb4358b11b7e50c1 (diff) | |
download | external_llvm-29150e45fbc6cabda57b2bce1c447a84b9c779f0.zip external_llvm-29150e45fbc6cabda57b2bce1c447a84b9c779f0.tar.gz external_llvm-29150e45fbc6cabda57b2bce1c447a84b9c779f0.tar.bz2 |
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
-rw-r--r-- | cmake/modules/HandleLLVMOptions.cmake | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cmake/modules/HandleLLVMOptions.cmake b/cmake/modules/HandleLLVMOptions.cmake index 4d56438..2cec270 100644 --- a/cmake/modules/HandleLLVMOptions.cmake +++ b/cmake/modules/HandleLLVMOptions.cmake @@ -8,6 +8,8 @@ include(CheckCXXCompilerFlag) 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) endif() |