llvm.org GIT mirror llvm / 7c027b7
[cmake] Fix error message on simulated VS version check For clang-cl self hosts in VS2015 environment this was reporting: "Host Clang must have at least -fms-compatibility-version=19.00.24213.1, your version is 9.0.0". This check fires as CMake detects the simulated environment as _MSC_VER 1900, which is truncated. This makes it less than the required 19.00.24213.1. Differential revision: https://reviews.llvm.org/D61188 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@359556 91177308-0d34-0410-b5e6-96231b3b80d8 Russell Gallop 5 months ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
4949 if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
5050 if (CMAKE_CXX_SIMULATE_ID MATCHES "MSVC")
5151 if (CMAKE_CXX_SIMULATE_VERSION VERSION_LESS MSVC_MIN)
52 message(FATAL_ERROR "Host Clang must have at least -fms-compatibility-version=${MSVC_MIN}, your version is ${CMAKE_CXX_COMPILER_VERSION}.")
52 message(FATAL_ERROR "Host Clang must have at least -fms-compatibility-version=${MSVC_MIN}, your version is ${CMAKE_CXX_SIMULATE_VERSION}.")
5353 endif()
5454 set(CLANG_CL 1)
5555 elseif(NOT LLVM_ENABLE_LIBCXX)