diff --git a/build/BuildWindowsTask.cs b/build/BuildWindowsTask.cs index 9c6ea04..d6ea154 100644 --- a/build/BuildWindowsTask.cs +++ b/build/BuildWindowsTask.cs @@ -10,7 +10,7 @@ public sealed class BuildWindowsTask : FrostingTask public override void Run(BuildContext context) { var buildWorkingDir = "basis_universal/"; - context.StartProcess("cmake", new ProcessSettings { WorkingDirectory = buildWorkingDir, Arguments = "CMakeLists.txt" }); + context.StartProcess("cmake", new ProcessSettings { WorkingDirectory = buildWorkingDir, Arguments = "-DSTATIC=TRUE CMakeLists.txt" }); context.StartProcess("cmake", new ProcessSettings { WorkingDirectory = buildWorkingDir, Arguments = "--build . --config release" }); var files = Directory.GetFiles(System.IO.Path.Combine (buildWorkingDir, "bin", "Release"), "basisu.exe", SearchOption.TopDirectoryOnly); context.CopyFile(files[0], $"{context.ArtifactsDir}/basisu.exe");