Update CMakeLists.txt

Increased MSVC version to the latest, and updated the error messaging so you know what version you have (if it's installed at all)
develop
PopnROFL 2023-02-21 20:13:57 -07:00 committed by Kelly Kinkade
parent 81db7f09a2
commit 15b00587a0
1 changed files with 4 additions and 2 deletions

@ -61,8 +61,10 @@ if(UNIX)
endif() endif()
if(WIN32) if(WIN32)
if((NOT MSVC) OR (MSVC_VERSION LESS 1930) OR (MSVC_VERSION GREATER 1934)) if(NOT MSVC)
message(SEND_ERROR "MSVC 2022 is required") message(SEND_ERROR "No MSVC found! MSVC 2022 version 1930 to 1935 is required.")
elseif((MSVC_VERSION LESS 1930) OR (MSVC_VERSION GREATER 1935))
message(SEND_ERROR "MSVC 2022 version 1930 to 1935 is required, Version Found: ${MSVC_VERSION}")
endif() endif()
endif() endif()