windows build fix
Some checks failed
demo.yaml / windows build fix (push) Failing after 0s

This commit is contained in:
Jorijn van der Graaf 2026-03-02 22:14:56 +01:00
commit 04533b5778
4 changed files with 2 additions and 17 deletions

View file

@ -146,15 +146,7 @@ namespace Crafter {
}
}
}
void AutoDetect() {
std::string directoryPath = RunCommand("\"C:\\Program Files (x86)\\Microsoft Visual Studio\\Installer\\vswhere.exe\" -latest -property installationPath");
directoryPath.pop_back();
vsVars = std::format("\"{}\\VC\\Auxiliary\\Build\\vcvars64.bat\" > nul", directoryPath);
}
#else
std::string RunCommand(const std::string_view cmd) {