From 7ab7bc3a9d0c967150c042ced209ae01fe603b2e Mon Sep 17 00:00:00 2001 From: Rafael Kitover Date: Sun, 15 Mar 2020 20:44:22 +0000 Subject: [PATCH] cmake: Add -debug suffix to windows debug zips. For the zip file containing the executable (and symbols for debug builds on msvc) add the -debug suffix to the basename of the zip file for debug builds. Signed-off-by: Rafael Kitover --- src/wx/CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/wx/CMakeLists.txt b/src/wx/CMakeLists.txt index eb03d1e7..51da4f73 100644 --- a/src/wx/CMakeLists.txt +++ b/src/wx/CMakeLists.txt @@ -1052,7 +1052,11 @@ if(UPSTREAM_RELEASE AND WIN32) endif() endif() - set(exezip visualboyadvance-m-Win-${BITS}bit.zip) + if(CMAKE_BUILD_TYPE MATCHES Debug) + set(exezip visualboyadvance-m-Win-${BITS}bit-debug.zip) + else() + set(exezip visualboyadvance-m-Win-${BITS}bit.zip) + endif() unset(pdb_file)