Skip to content

Commit

Permalink
CXXCBC-640: do not force debug symbols for release builds
Browse files Browse the repository at this point in the history
Fixes #702
  • Loading branch information
avsej committed Jan 14, 2025
1 parent 3510b3a commit 4654a54
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmake/Backtrace.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ if(HAVE_DLADDR)
endif()

if(HAVE_BACKTRACE OR HAVE_DLADDR)
target_compile_options(project_options INTERFACE -ggdb3)
if(CMAKE_BUILD_TYPE STREQUAL "Debug" OR CMAKE_BUILD_TYPE STREQUAL "RelWithDebInfo")
target_compile_options(project_options INTERFACE -ggdb3)
endif()
target_link_libraries(project_options INTERFACE -rdynamic)
add_definitions(-D_GNU_SOURCE=1)
endif()

0 comments on commit 4654a54

Please sign in to comment.