Skip to content

Commit

Permalink
Add linker flag needed by BlackMisc::getStackTrace
Browse files Browse the repository at this point in the history
  • Loading branch information
oktal3700 authored and ltoenning committed Nov 19, 2023
1 parent c83790d commit 4cacdef
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,11 @@ elseif(UNIX)
set(CMAKE_INSTALL_RPATH \$ORIGIN/../lib)
endif()

if(UNIX AND NOT APPLE AND ${CMAKE_BUILD_TYPE} STREQUAL Debug)
# For BlackMisc::getStackTrace
add_link_options(-rdynamic)
endif()

if(MSVC)
set(CMAKE_DEBUG_POSTFIX d)
endif()
Expand Down

0 comments on commit 4cacdef

Please sign in to comment.