Skip to content

Commit ffeafb8

Browse files
committed
Add support for Visual Studio 2026
1 parent d3e7bda commit ffeafb8

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

cmake/modules/RootCPack.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@ if(MSVC)
8181
math(EXPR VS_VERSION "${VC_MAJOR} - 3")
8282
elseif(MSVC_VERSION LESS 1950)
8383
math(EXPR VS_VERSION "${VC_MAJOR} - 2")
84+
elseif(MSVC_VERSION LESS 1960)
85+
math(EXPR VS_VERSION "${VC_MAJOR} - 1")
8486
else()
8587
message(FATAL_ERROR "MSVC_VERSION ${MSVC_VERSION} not implemented")
8688
endif()

interpreter/cling/lib/Utils/PlatformWin.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -386,6 +386,8 @@ static int GetVisualStudioVersionCompiledWith() {
386386
return 16;
387387
#elif (_MSC_VER < 1950)
388388
return 17;
389+
#elif (_MSC_VER < 1960)
390+
return 18;
389391
#else
390392
#error "Unsupported/Untested _MSC_VER"
391393
// As of now this is what is should be...have fun!

0 commit comments

Comments
 (0)