--- a/CMakeLists.txt 2022-02-28 22:19:15.000000000 +0300 +++ b/CMakeLists.txt 2022-07-13 13:12:17.061875576 +0300 @@ -1,10 +1,6 @@ cmake_minimum_required(VERSION 3.14) -if (UNIX) - # we want debug symbols even with Release builds - string(APPEND CMAKE_CXX_FLAGS_RELEASE_INIT "-g -ffast-math") - string(APPEND CMAKE_C_FLAGS_RELEASE_INIT "-g -ffast-math") -elseif(MSVC) +if(MSVC) set(CMAKE_CONFIGURATION_TYPES "Debug;Release" CACHE STRING "" FORCE) endif() @@ -268,19 +252,6 @@ set_target_properties(TheDarkMod PROPERTIES WIN32_EXECUTABLE TRUE) elseif (UNIX) target_link_libraries(TheDarkMod pthread dl stdc++fs X11 Xext Xxf86vm) - # strip debug symbols from executable and put them into a separate symbols file - add_custom_command( - TARGET TheDarkMod POST_BUILD - COMMAND objcopy --only-keep-debug "$" "$.debug" - ) - add_custom_command( - TARGET TheDarkMod POST_BUILD - COMMAND strip --strip-debug --strip-unneeded "$" - ) - add_custom_command( - TARGET TheDarkMod POST_BUILD - COMMAND objcopy "--add-gnu-debuglink=$.debug" "$" - ) endif () if (COPY_EXE)