Add linker flag needed by BlackMisc::getStackTrace

This commit is contained in:
Mat Sutcliffe
2023-11-18 20:39:17 +00:00
committed by Lars Toenning
parent c83790d765
commit 4cacdef222

View File

@@ -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()