[llvm] r199753 - Fix VS2012 ID/version check.
Amara Emerson
amara.emerson at arm.com
Tue Jan 21 08:41:08 PST 2014
Author: aemerson
Date: Tue Jan 21 10:41:07 2014
New Revision: 199753
URL: http://llvm.org/viewvc/llvm-project?rev=199753&view=rev
Log:
Fix VS2012 ID/version check.
Modified:
llvm/trunk/cmake/modules/HandleLLVMOptions.cmake
Modified: llvm/trunk/cmake/modules/HandleLLVMOptions.cmake
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/cmake/modules/HandleLLVMOptions.cmake?rev=199753&r1=199752&r2=199753&view=diff
==============================================================================
--- llvm/trunk/cmake/modules/HandleLLVMOptions.cmake (original)
+++ llvm/trunk/cmake/modules/HandleLLVMOptions.cmake Tue Jan 21 10:41:07 2014
@@ -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()
More information about the llvm-commits
mailing list