summaryrefslogtreecommitdiffstats
path: root/Modules/Platform
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-04-04 15:43:09 (GMT)
committerKitware Robot <kwrobot@kitware.com>2019-04-04 15:43:18 (GMT)
commit5c1ead795d3fc003908a515565842cf1815eb111 (patch)
treef30498742e0016dbbfdaeeeed361569b19159f8e /Modules/Platform
parent85b26a7254ce66404227f2b715fd4e29c64668f6 (diff)
parent33ee7793300f6ef9f5206e5a0539c192affa3d23 (diff)
downloadCMake-5c1ead795d3fc003908a515565842cf1815eb111.zip
CMake-5c1ead795d3fc003908a515565842cf1815eb111.tar.gz
CMake-5c1ead795d3fc003908a515565842cf1815eb111.tar.bz2
Merge topic 'vs2019-redist'
33ee779330 IRSL: Fix discovery of VS 2019 v142 toolset redistributables d8cf8380fb MSVC: Fix MSVC_TOOLSET_VERSION for VS 2019 v142 toolset Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3186
Diffstat (limited to 'Modules/Platform')
-rw-r--r--Modules/Platform/Windows-MSVC.cmake5
1 files changed, 4 insertions, 1 deletions
diff --git a/Modules/Platform/Windows-MSVC.cmake b/Modules/Platform/Windows-MSVC.cmake
index 0e11790..df3bd1e 100644
--- a/Modules/Platform/Windows-MSVC.cmake
+++ b/Modules/Platform/Windows-MSVC.cmake
@@ -71,7 +71,10 @@ if(NOT MSVC_VERSION)
message(FATAL_ERROR "MSVC compiler version not detected properly: ${_compiler_version}")
endif()
- if(MSVC_VERSION GREATER_EQUAL 1910)
+ if(MSVC_VERSION GREATER_EQUAL 1920)
+ # VS 2019 or greater
+ set(MSVC_TOOLSET_VERSION 142)
+ elseif(MSVC_VERSION GREATER_EQUAL 1910)
# VS 2017 or greater
set(MSVC_TOOLSET_VERSION 141)
elseif(MSVC_VERSION EQUAL 1900)