Reduce file size by only including relevant debug symbols for stacktraces.
This commit is contained in:
parent
03c364765e
commit
cab1b57a8e
|
@ -63,9 +63,10 @@ foreach (_conanLib ${CONAN_LIBS})
|
||||||
message(STATUS "\t ${_conanLib}")
|
message(STATUS "\t ${_conanLib}")
|
||||||
endforeach ()
|
endforeach ()
|
||||||
|
|
||||||
if (NOT WINDOWS)
|
if (CMAKE_BUILD_TYPE MATCHES Release AND NOT WINDOWS)
|
||||||
# Include debug symbols in all linux builds
|
# 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 ()
|
endif ()
|
||||||
|
|
||||||
# Set whether we want a static or shared library.
|
# Set whether we want a static or shared library.
|
||||||
|
|
Loading…
Reference in New Issue