1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-25 17:28:50 -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) elseif (WIN32)
# check compiler version # check compiler version
message(STATUS "MSVC_VERSION is ${MSVC_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) set(VS2022 ON)
elseif(MSVC_VERSION GREATER_EQUAL 1920 AND MSVC_VERSION LESS 1930) elseif(MSVC_VERSION GREATER_EQUAL 1920 AND MSVC_VERSION LESS 1930)
set(VS2019 ON) set(VS2019 ON)