diff --git a/CMakeLists.txt b/CMakeLists.txt index 6880b53..da96669 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -23,10 +23,11 @@ if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang") add_link_options(-fuse-ld=lld) endif () -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) -endif() + message("Including debug symbols") + add_compile_options(-g -gline-tables-only) +endif () # Grab all cpp and hpp files in our source directories. file(GLOB_RECURSE SRC_FILES "src/*.cpp" "src/*.hpp" "CInterface/*.cpp" "CInterface/*.hpp")