Follow Appveyor MSVC upgrade

This commit is contained in:
f4exb 2021-06-14 22:32:53 +02:00
parent 9abc23de6c
commit de838e8c30
1 changed files with 2 additions and 1 deletions

View File

@ -193,7 +193,8 @@ elseif(APPLE)
"${CMAKE_BINARY_DIR}/Info.plist" @ONLY)
elseif (WIN32)
# check compiler version
if(MSVC_VERSION GREATER 1920 AND MSVC_VERSION LESS 1929)
message(STATUS "MSVC_VERSION is ${MSVC_VERSION}")
if(MSVC_VERSION GREATER 1920 AND MSVC_VERSION LESS 1930)
set(VS2019 ON)
elseif(MSVC_VERSION GREATER 1910 AND MSVC_VERSION LESS 1919)
set(VS2017 ON)