Skip to content

Commit

Permalink
Add support for Visual Studio 2022 (#352)
Browse files Browse the repository at this point in the history
* Update README.md

* Update setup.py

* Update main.yml

* Update setup.py

* Update setup.py

* Update setup.py

* Update main.yml

* Update main.yml
  • Loading branch information
StrikerRUS authored Jan 7, 2022
1 parent 8aa9508 commit 70d020f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions RGF/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ We tested following versions of Visual Studio:
- Visual Studio 14 2015 [Win64]
- Visual Studio 15 2017 [Win64]
- Visual Studio 16 2019 [Win64]
- Visual Studio 17 2022 [Win64]

Other versions may work but are untested.

Expand Down
6 changes: 4 additions & 2 deletions python-package/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,8 @@ def compile_rgf():
else:
arch = 'Win32'
platform_toolsets = ('Windows7.1SDK', 'v100', 'v110',
'v120', 'v140', 'v141', 'v142')
'v120', 'v140', 'v141', 'v142',
'v143')
for platform_toolset in platform_toolsets:
success = silent_call(('MSBuild',
'rgf.sln',
Expand All @@ -200,7 +201,8 @@ def compile_rgf():
logger.info("Trying to build executable file with CMake and MSBuild.")
generators = ('Visual Studio 10 2010', 'Visual Studio 11 2012',
'Visual Studio 12 2013', 'Visual Studio 14 2015',
'Visual Studio 15 2017', 'Visual Studio 16 2019')
'Visual Studio 15 2017', 'Visual Studio 16 2019',
'Visual Studio 17 2022')
for generator in generators:
clear_folder(os.path.join(rgf_base_dir, 'build'))
success = silent_call(('cmake', '../', '-G', generator, '-A', arch))
Expand Down

0 comments on commit 70d020f

Please sign in to comment.