mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-18 03:15:34 +08:00
Add linker flag needed by BlackMisc::getStackTrace
This commit is contained in:
committed by
Lars Toenning
parent
c83790d765
commit
4cacdef222
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user