mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-25 01:18:38 -05:00
Allow VS2022 for MSVC (take 2)
This commit is contained in:
parent
9d7d80158f
commit
fd1eecd00e
@ -195,14 +195,14 @@ elseif(APPLE)
|
||||
elseif (WIN32)
|
||||
# check compiler version
|
||||
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)
|
||||
elseif(MSVC_VERSION GREATER 1899 AND MSVC_VERSION LESS 1910)
|
||||
set(VS2015 ON)
|
||||
elseif(MSVC_VERSION GREATER 1930)
|
||||
if(MSVC_VERSION GREATER_EQUAL 1930 AND MSVC_VERSION LESS 1940)
|
||||
set(VS2022 ON)
|
||||
elseif(MSVC_VERSION GREATER_EQUAL 1920 AND MSVC_VERSION LESS 1930)
|
||||
set(VS2019 ON)
|
||||
elseif(MSVC_VERSION GREATER_EQUAL 1910 AND MSVC_VERSION LESS 1919)
|
||||
set(VS2017 ON)
|
||||
elseif(MSVC_VERSION GREATER_EQUAL 1900 AND MSVC_VERSION LESS 1910)
|
||||
set(VS2015 ON)
|
||||
endif()
|
||||
|
||||
if(NOT VS2015 AND NOT VS2017 AND NOT VS2019 AND NOT VS2022)
|
||||
|
Loading…
Reference in New Issue
Block a user