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.