Skip to content

Commit

Permalink
support msvc 1940 (VS 17.10)
Browse files Browse the repository at this point in the history
  • Loading branch information
ab9rf committed May 30, 2024
1 parent 7ce040b commit 6944ca6
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,12 @@ if(UNIX)
endif()

if(WIN32)
set(MSVC_MIN_VER 1930)
set(MSVC_MAX_VER 1940)
if(NOT MSVC)
message(SEND_ERROR "No MSVC found! MSVC 2022 version 1930 to 1939 is required.")
elseif((MSVC_VERSION LESS 1930) OR (MSVC_VERSION GREATER 1939))
message(SEND_ERROR "MSVC 2022 version 1930 to 1939 is required, Version Found: ${MSVC_VERSION}")
message(SEND_ERROR "No MSVC found! MSVC 2022 version ${MSVC_MIN_VER} to ${MSVC_MAX_VER} is required.")
elseif((MSVC_VERSION LESS MSVC_MIN_VER) OR (MSVC_VERSION GREATER MSVC_MAX_VER))
message(SEND_ERROR "MSVC 2022 version ${MSVC_MIN_VER} to ${MSVC_MAX_VER} is required, Version Found: ${MSVC_VERSION}")
endif()
endif()

Expand Down

0 comments on commit 6944ca6

Please sign in to comment.