diff --git a/DirectXTex/Shaders/CompileShaders.cmd b/DirectXTex/Shaders/CompileShaders.cmd index 3ce5e6bc..65f54a75 100644 --- a/DirectXTex/Shaders/CompileShaders.cmd +++ b/DirectXTex/Shaders/CompileShaders.cmd @@ -17,7 +17,10 @@ if exist %PCFXC% goto continue set PCFXC=fxc.exe :continue -@if %CompileShadersOutput%.==. set CompileShadersOutput=Compiled +if not defined CompileShadersOutput set CompileShadersOutput=Compiled +set StrTrim=%CompileShadersOutput%## +set StrTrim=%StrTrim: ##=% +set CompileShadersOutput=%StrTrim:##=% @if not exist %CompileShadersOutput% mkdir %CompileShadersOutput% call :CompileShader BC7Encode TryMode456CS call :CompileShader BC7Encode TryMode137CS