Add support for Visual Studio 2022

- References: https://cmake.org/cmake/help/latest/generator/Visual%20Studio%2017%202022.html
This commit is contained in:
Chris Ohk 2021-08-22 14:50:46 +09:00 committed by Lukas Dürrenberger
parent c90d308b45
commit eeeda74ec1

View File

@ -104,6 +104,8 @@ if(MSVC)
set(SFML_MSVC_VERSION 15)
elseif(MSVC_VERSION LESS_EQUAL 1929)
set(SFML_MSVC_VERSION 16)
elseif(MSVC_VERSION LESS_EQUAL 1939)
set(SFML_MSVC_VERSION 17)
endif()
elseif(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
set(SFML_COMPILER_CLANG 1)