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:
parent
1034e3aa99
commit
4f822b4daf
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user