Skip to content

Commit

Permalink
Fix VS2012 ID/version check.
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@199753 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
aemerson committed Jan 21, 2014
1 parent 94ad5a1 commit b422abd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/modules/HandleLLVMOptions.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit b422abd

Please sign in to comment.