mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 13:47:58 +03:00
Enable exports on all targets for debugging purposes
This commit is contained in:
parent
bd1ac8c691
commit
c180514a72
1 changed files with 6 additions and 0 deletions
|
@ -58,6 +58,12 @@ ENDIF()
|
|||
IF(CMAKE_BUILD_TYPE MATCHES Debug)
|
||||
set(TARGET_CONFIG_SUFFIX "-dbg")
|
||||
add_definitions(-D_DEBUG)
|
||||
|
||||
if(UNIX)
|
||||
# Enable all exports so all functions name can be seen during executable crash
|
||||
set(CMAKE_ENABLE_EXPORTS ON)
|
||||
message(STATUS "Enabling exports on Unix for backtrace")
|
||||
endif()
|
||||
ELSE()
|
||||
set(TARGET_CONFIG_SUFFIX "")
|
||||
ENDIF()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue