Reduce file size by only including relevant debug symbols for stacktraces.

This commit is contained in:
Deukhoofd 2020-12-31 13:55:31 +01:00
parent 03c364765e
commit cab1b57a8e
Signed by: Deukhoofd
GPG Key ID: F63E044490819F6F
1 changed files with 3 additions and 2 deletions

View File

@ -63,9 +63,10 @@ foreach (_conanLib ${CONAN_LIBS})
message(STATUS "\t ${_conanLib}")
endforeach ()
if (NOT WINDOWS)
if (CMAKE_BUILD_TYPE MATCHES Release AND NOT WINDOWS)
# Include debug symbols in all linux builds
add_compile_options(-g -gfull -g3)
message("Including debug symbols")
add_compile_options(-g -gline-tables-only)
endif ()
# Set whether we want a static or shared library.