diff options
author | Lazydodo <github@lazydodo.com> | 2019-08-02 17:24:55 +0300 |
---|---|---|
committer | Lazydodo <github@lazydodo.com> | 2019-08-02 17:25:18 +0300 |
commit | 9198ff4306792ea5a1eb9c818a61cdd32ef3d7e2 (patch) | |
tree | fd96e7f2d4000c92829a18339e0b60063003c86e /build_files/windows | |
parent | 630747ca66dac8e5ccad46de047025b3912a2b53 (diff) |
Cleanup/Win: Fix build folder name if no target is set
When you call make.bat without a target the build folder name would
have a double underscore in it which looked odd.
Diffstat (limited to 'build_files/windows')
-rw-r--r-- | build_files/windows/set_build_dir.cmd | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/build_files/windows/set_build_dir.cmd b/build_files/windows/set_build_dir.cmd index bb01749c5ee..65b5923cd9a 100644 --- a/build_files/windows/set_build_dir.cmd +++ b/build_files/windows/set_build_dir.cmd @@ -1,4 +1,9 @@ -set BUILD_DIR=%BUILD_DIR%_%TARGET%_%BUILD_ARCH%_vc%BUILD_VS_VER%_%BUILD_TYPE% +if NOT "%TARGET%" == "" ( + set BUILD_DIR=%BUILD_DIR%_%TARGET%_%BUILD_ARCH%_vc%BUILD_VS_VER%_%BUILD_TYPE% +) else ( + set BUILD_DIR=%BUILD_DIR%_%BUILD_ARCH%_vc%BUILD_VS_VER%_%BUILD_TYPE% +) + if NOT "%BUILD_DIR_OVERRRIDE%"=="" ( set BUILD_DIR=%BUILD_DIR_OVERRRIDE% )
\ No newline at end of file |