]> granicus.if.org Git - llvm/commit
[cmake] Fix error message on simulated VS version check
authorRussell Gallop <russell.gallop@gmail.com>
Tue, 30 Apr 2019 12:37:10 +0000 (12:37 +0000)
committerRussell Gallop <russell.gallop@gmail.com>
Tue, 30 Apr 2019 12:37:10 +0000 (12:37 +0000)
commit7c027b7c7254ddd06e9178680090b7321d020c44
treec3c7b18898dc173120092a1842344014b690d122
parent883da93f6770414974aad035b0d5a66fb81f2a2f
[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
cmake/modules/CheckCompilerVersion.cmake