1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-12-23 01:55:48 -05:00

Fixed MSVC version detection

This commit is contained in:
f4exb 2024-06-10 04:07:58 +02:00
parent 1034e3aa99
commit 4f822b4daf

View File

@ -307,7 +307,7 @@ elseif(APPLE)
elseif (WIN32)
# check compiler version
message(STATUS "MSVC_VERSION is ${MSVC_VERSION}")
if(MSVC_VERSION GREATER_EQUAL 1930 AND MSVC_VERSION LESS 1940)
if(MSVC_VERSION GREATER_EQUAL 1930)
set(VS2022 ON)
elseif(MSVC_VERSION GREATER_EQUAL 1920 AND MSVC_VERSION LESS 1930)
set(VS2019 ON)