mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-18 13:42:02 +00:00
b4339f266d
* Fix shared build * Major default libs refactor * Fix build with gcc_eh * Link all libraries as a big group. * Use global interface library as a group * Build capnproto using our cmake * Use only internal libunwind
18 lines
510 B
CMake
18 lines
510 B
CMake
option (USE_UNWIND "Enable libunwind (better stacktraces)" ON)
|
|
|
|
if (NOT CMAKE_SYSTEM MATCHES "Linux" OR ARCH_ARM OR ARCH_32)
|
|
set (USE_UNWIND OFF)
|
|
endif ()
|
|
|
|
if (USE_UNWIND)
|
|
add_subdirectory(contrib/libunwind-cmake)
|
|
set (UNWIND_LIBRARIES unwind)
|
|
set (EXCEPTION_HANDLING_LIBRARY ${UNWIND_LIBRARIES})
|
|
|
|
message (STATUS "Using libunwind: ${UNWIND_LIBRARIES}")
|
|
else ()
|
|
set (EXCEPTION_HANDLING_LIBRARY gcc_eh)
|
|
endif ()
|
|
|
|
message (STATUS "Using exception handler: ${EXCEPTION_HANDLING_LIBRARY}")
|