From 4f822b4daf43a4100bf2ca7d03b182cc1a219275 Mon Sep 17 00:00:00 2001 From: f4exb Date: Mon, 10 Jun 2024 04:07:58 +0200 Subject: [PATCH] Fixed MSVC version detection --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 07f18ceac..f361b9b86 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)