This commit is contained in:
parent
d9069501b9
commit
04533b5778
4 changed files with 2 additions and 17 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue