From da721935734ff4fc8752f0ecc95c2dea9220fb6e Mon Sep 17 00:00:00 2001 From: Giovanni Bortolozzo Date: Thu, 22 Aug 2024 12:23:11 +0200 Subject: [PATCH] Update conan.cmake to support actual version of Visual Studio 2022 As reported in https://cmake.org/cmake/help/latest/variable/MSVC_VERSION.html the maximum value for the visual studio 2022 is now less than 1950 not 1940. 1940 is the release 17.10 --- conan.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conan.cmake b/conan.cmake index 4f5f67e7..7c78f741 100644 --- a/conan.cmake +++ b/conan.cmake @@ -55,7 +55,7 @@ function(_get_msvc_ide_version result) set(${result} 15 PARENT_SCOPE) elseif(NOT MSVC_VERSION VERSION_LESS 1920 AND MSVC_VERSION VERSION_LESS 1930) set(${result} 16 PARENT_SCOPE) - elseif(NOT MSVC_VERSION VERSION_LESS 1930 AND MSVC_VERSION VERSION_LESS 1940) + elseif(NOT MSVC_VERSION VERSION_LESS 1930 AND MSVC_VERSION VERSION_LESS 1950) set(${result} 17 PARENT_SCOPE) else() message(FATAL_ERROR "Conan: Unknown MSVC compiler version [${MSVC_VERSION}]")