diff --git a/build.bat b/build.bat index a271f281004..8df86995edd 100644 --- a/build.bat +++ b/build.bat @@ -87,6 +87,8 @@ EXIT /b 0 :clean IF EXIST "%BASE_PATH%/output" ( cd %BASE_PATH%/output - rd /s /q _CPack_Packages + if EXIST "%BASE_PATH%/output/_CPack_Packages" ( + rd /s /q _CPack_Packages + ) ) cd %BASE_PATH% \ No newline at end of file