From 7c27b1fd5c491b0b8a5917038b57d4f6f68d4ea1 Mon Sep 17 00:00:00 2001 From: Iceflower Date: Fri, 30 Jul 2021 19:38:51 +0200 Subject: [PATCH] Add VS 17 2022 support --- conan.cmake | 2 ++ 1 file changed, 2 insertions(+) diff --git a/conan.cmake b/conan.cmake index cabb352f..bcf25f7e 100644 --- a/conan.cmake +++ b/conan.cmake @@ -55,6 +55,8 @@ 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) + set(${result} 17 PARENT_SCOPE) else() message(FATAL_ERROR "Conan: Unknown MSVC compiler version [${MSVC_VERSION}]") endif()