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)