Default to latest VS version

This commit is contained in:
Mark Wiemer 2024-12-03 09:27:35 -06:00
parent 87b3aa2aca
commit 70a6f2c5a2

View File

@ -72,7 +72,7 @@ There are two ways to compile Luanti: via Visual Studio or via CLI.
While in the `path/to/minetest` folder, run the following script in PowerShell:
```powershell
$vs="Visual Studio 16 2019" # or "Visual Studio 17 2022", whatever matches your system
$vs="Visual Studio 17 2022" # or "Visual Studio 16 2019", etc., whatever matches your system
$toolchain_file="C:/vcpkg/scripts/buildsystems/vcpkg.cmake" # ensure this path is correct
cmake . -G $vs -DCMAKE_TOOLCHAIN_FILE=$toolchain_file -DCMAKE_BUILD_TYPE=Release -DENABLE_CURSES=OFF
cmake --build . --config Release