[PATCH] D61188: [cmake] Fix error message in simulated VS version check

Phabricator via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 30 05:35:04 PDT 2019


This revision was automatically updated to reflect the committed changes.
Closed by commit rL359556: [cmake] Fix error message on simulated VS version check (authored by russell_gallop, committed by ).

Changed prior to commit:
  https://reviews.llvm.org/D61188?vs=196844&id=197303#toc

Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D61188/new/

https://reviews.llvm.org/D61188

Files:
  llvm/trunk/cmake/modules/CheckCompilerVersion.cmake


Index: llvm/trunk/cmake/modules/CheckCompilerVersion.cmake
===================================================================
--- llvm/trunk/cmake/modules/CheckCompilerVersion.cmake
+++ llvm/trunk/cmake/modules/CheckCompilerVersion.cmake
@@ -50,7 +50,7 @@
 if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
   if (CMAKE_CXX_SIMULATE_ID MATCHES "MSVC")
     if (CMAKE_CXX_SIMULATE_VERSION VERSION_LESS MSVC_MIN)
-      message(FATAL_ERROR "Host Clang must have at least -fms-compatibility-version=${MSVC_MIN}, your version is ${CMAKE_CXX_COMPILER_VERSION}.")
+      message(FATAL_ERROR "Host Clang must have at least -fms-compatibility-version=${MSVC_MIN}, your version is ${CMAKE_CXX_SIMULATE_VERSION}.")
     endif()
     set(CLANG_CL 1)
   elseif(NOT LLVM_ENABLE_LIBCXX)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D61188.197303.patch
Type: text/x-patch
Size: 767 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190430/2a3aa428/attachment.bin>


More information about the llvm-commits mailing list