Skip to content

Commit 65d7c5a

Browse files
committed
add vs_version 18 to setup.py
1 parent ac908a4 commit 65d7c5a

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

setup.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,10 @@ def determine_generator_args(cmake_version=None, windows_sdk_version=None):
174174
# This technique may not work with customized VS install paths.
175175
# An alternative would be to utilize private python calls:
176176
# (distutils._msvccompiler._find_vc2017() and _find_vc2015()).
177-
if '\\Microsoft Visual Studio\\2022' in compiler.cc:
177+
if '\\Microsoft Visual Studio\\2026' in compiler.cc:
178+
vs_version = 18
179+
vs_year = 2026
180+
elif '\\Microsoft Visual Studio\\2022' in compiler.cc:
178181
vs_version = 17
179182
vs_year = 2022
180183
elif '\\Microsoft Visual Studio\\2019' in compiler.cc:

0 commit comments

Comments
 (0)