From cab1b57a8ef497a8f9858c366fb18c093058d1f1 Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Thu, 31 Dec 2020 13:55:31 +0100 Subject: [PATCH] Reduce file size by only including relevant debug symbols for stacktraces. --- CMakeLists.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6bd02ed..5473878 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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.