Skip to content

Commit

Permalink
Fixed MSVC version detection
Browse files Browse the repository at this point in the history
  • Loading branch information
f4exb committed Jun 10, 2024
1 parent 1034e3a commit 4f822b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ elseif(APPLE)
elseif (WIN32)
# check compiler version
message(STATUS "MSVC_VERSION is ${MSVC_VERSION}")
if(MSVC_VERSION GREATER_EQUAL 1930 AND MSVC_VERSION LESS 1940)
if(MSVC_VERSION GREATER_EQUAL 1930)
set(VS2022 ON)
elseif(MSVC_VERSION GREATER_EQUAL 1920 AND MSVC_VERSION LESS 1930)
set(VS2019 ON)
Expand Down

0 comments on commit 4f822b4

Please sign in to comment.