mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-24 21:11:39 +00:00
fix Unix builds without backtrace functions in their libc
backtrace functions are not present in all libc implementations. Cmake has module to add external libraries into build if needed so use it to fix build on Unix systems without backtrace in libc.
This commit is contained in:
parent
3e3d21cd35
commit
9e80caa85d
1 changed files with 7 additions and 0 deletions
|
@ -1303,6 +1303,13 @@ if(${CMAKE_SYSTEM_NAME} STREQUAL "SunOS")
|
|||
set( ZDOOM_LIBS ${ZDOOM_LIBS} nsl socket)
|
||||
endif()
|
||||
|
||||
if( UNIX )
|
||||
find_package( Backtrace )
|
||||
if(Backtrace_FOUND)
|
||||
set( ZDOOM_LIBS ${ZDOOM_LIBS} ${Backtrace_LIBRARIES} )
|
||||
endif()
|
||||
endif()
|
||||
|
||||
target_link_libraries( zdoom ${ZDOOM_LIBS} gdtoa dumb lzma )
|
||||
|
||||
include_directories( .
|
||||
|
|
Loading…
Reference in a new issue