From fda4a4b70eaaa72f3b35186f307f2022922a9a81 Mon Sep 17 00:00:00 2001
From: alef <alef@users.noreply.github.com>
Date: Mon, 12 Feb 2024 10:27:09 +0100
Subject: [PATCH] Strip MSYS/MINGW executable, like done in Makefile

---
 src/CMakeLists.txt | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 6e18c5b626adf..2c52276d32f4b 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -48,8 +48,9 @@ if (TILES)
                 ${MESSAGES_CPP}
                 ${RESOURCE_RC})
         if(MSYS2)
-            # /MANIFESTINPUT not supported by GNU linker
-            # Defaul embed via `windres.exe` compiling `resource.rc` -> `resource.rc.obj`
+            target_link_options(cataclysm-tiles PRIVATE
+                "LINKER:--strip-debug"
+            )
         else()
             # Use only our RT_MANIFEST from resource.rc
             target_link_options(cataclysm-tiles PRIVATE