Skip to content

Commit

Permalink
Fix MSVC 1940 version detection
Browse files Browse the repository at this point in the history
  • Loading branch information
fspindle committed Jun 6, 2024
1 parent 7fb0eb8 commit 076f306
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmake/FindVirtuose.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ elseif(MSVC)
set(VIRTUOSE_MSVC_RUNTIME VC2017)
elseif(MSVC_VERSION MATCHES "^192[0-9]$")
set(VIRTUOSE_MSVC_RUNTIME VC2019)
elseif(MSVC_VERSION MATCHES "^193[0-9]$")
elseif(MSVC_VERSION MATCHES "^19[34][0-9]$")
set(VIRTUOSE_MSVC_RUNTIME VC2022)
endif()

Expand Down
2 changes: 1 addition & 1 deletion cmake/templates/VISPConfig.root-WIN32.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ elseif(MSVC)
set(VISP_RUNTIME vc14) # selecting previous compatible runtime version
endif()
endif()
elseif(MSVC_VERSION MATCHES "^193[0-9]$")
elseif(MSVC_VERSION MATCHES "^19[34][0-9]$")
set(VISP_RUNTIME vc17)
check_one_config(has_VS2022)
if(NOT has_VS2022)
Expand Down

0 comments on commit 076f306

Please sign in to comment.