diff --git a/Source/Tools/Flax.Build/Deps/Dependencies/NvCloth.cs b/Source/Tools/Flax.Build/Deps/Dependencies/NvCloth.cs
index 7be41423f..9719a7ec2 100644
--- a/Source/Tools/Flax.Build/Deps/Dependencies/NvCloth.cs
+++ b/Source/Tools/Flax.Build/Deps/Dependencies/NvCloth.cs
@@ -195,7 +195,7 @@ namespace Flax.Deps.Dependencies
RunCmake(cmakeFolder, platform, architecture, " -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF " + cmakeArgs, envVars);
// Run build
- BuildCmake(cmakeFolder, envVars);
+ BuildCmake(cmakeFolder, envVars: envVars);
// Deploy binaries
var libs = new[]
diff --git a/Source/Tools/Flax.Build/Deps/Dependency.cs b/Source/Tools/Flax.Build/Deps/Dependency.cs
index 848f2a2a9..2405cc991 100644
--- a/Source/Tools/Flax.Build/Deps/Dependency.cs
+++ b/Source/Tools/Flax.Build/Deps/Dependency.cs
@@ -251,10 +251,11 @@ namespace Flax.Deps
/// Builds the cmake project.
///
/// The path.
+ /// The configuration preset.
/// Custom environment variables to pass to the child process.
- public static void BuildCmake(string path, Dictionary envVars = null)
+ public static void BuildCmake(string path, string config = "Release", Dictionary envVars = null)
{
- Utilities.Run("cmake", "--build . --config Release", null, path, Utilities.RunOptions.DefaultTool, envVars);
+ Utilities.Run("cmake", $"--build . --config {config}", null, path, Utilities.RunOptions.DefaultTool, envVars);
}
///