Support Visual Studio 2026 (#11349)

* Add script with VS version auto detection

* Add msvc145 toolset support

* Fix issue when build slicer only

* Fix vs2026 OpenCV build

* Set github action to use new build script

* Get vs version from `msbuild --version` so it works for github action
This commit is contained in:
Noisyfox
2025-11-13 23:11:56 +08:00
committed by GitHub
parent d94fa0a95d
commit 7f1aad8bc1
7 changed files with 170 additions and 44 deletions

View File

@@ -61,6 +61,7 @@ mkdir %build_dir%
cd %build_dir%
echo on
set CMAKE_POLICY_VERSION_MINIMUM=3.5
cmake .. -G "Visual Studio 17 2022" -A x64 -DORCA_TOOLS=ON %SIG_FLAG% -DCMAKE_BUILD_TYPE=%build_type%
cmake --build . --config %build_type% --target ALL_BUILD -- -m
@echo off