This commit is contained in:
ekibun
2021-01-22 16:33:25 +08:00
parent 257dfd9e96
commit c7da8abb67
6 changed files with 15 additions and 5 deletions

View File

@@ -48,8 +48,11 @@ void main() async {
var cmakePath = "cmake";
if (Platform.isWindows) {
var vsDir = Directory("C:/Program Files (x86)/Microsoft Visual Studio/");
vsDir = (vsDir.listSync().firstWhere((e) => e is Directory) as Directory).listSync().last;
cmakePath = vsDir.path + "/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/bin/cmake.exe";
vsDir = (vsDir.listSync().firstWhere((e) => e is Directory) as Directory)
.listSync()
.last as Directory;
cmakePath = vsDir.path +
"/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/bin/cmake.exe";
}
final buildDir = "./build";
var result = Process.runSync(