summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorAmara Emerson <amara.emerson@arm.com>2014-01-21 16:41:07 +0000
committerAmara Emerson <amara.emerson@arm.com>2014-01-21 16:41:07 +0000
commitb422abd4be093e07f89e6d65208ba77dd81c6230 (patch)
treee64fb70e08d4e2f0c3714584e7a1543dc6c67eab /cmake
parent94ad5a120fe320171f1630d1878ec1ae8b7eafa1 (diff)
downloadllvm-b422abd4be093e07f89e6d65208ba77dd81c6230.tar.gz
llvm-b422abd4be093e07f89e6d65208ba77dd81c6230.tar.bz2
llvm-b422abd4be093e07f89e6d65208ba77dd81c6230.tar.xz
Fix VS2012 ID/version check.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@199753 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake')
-rw-r--r--cmake/modules/HandleLLVMOptions.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/modules/HandleLLVMOptions.cmake b/cmake/modules/HandleLLVMOptions.cmake
index b02182189e..cb7da42658 100644
--- a/cmake/modules/HandleLLVMOptions.cmake
+++ b/cmake/modules/HandleLLVMOptions.cmake
@@ -42,7 +42,7 @@ int main() { return (float)x; }"
message(FATAL_ERROR "Host Clang must be able to find libstdc++4.7 or newer!")
endif()
endif()
- elseif(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
+ elseif(CMAKE_CXX_COMPILER_ID MATCHES "MSVC")
if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS 17.0)
message(FATAL_ERROR "Host Visual Studio must be at least 2012 (MSVC 17.0)")
endif()