ClickHouse/contrib/libfiu-cmake/CMakeLists.txt

21 lines
491 B
CMake
Raw Normal View History

2023-05-01 22:05:36 +00:00
if (NOT ENABLE_FIU)
2023-05-10 11:56:17 +00:00
message (STATUS "Not using fiu")
2023-05-01 22:05:36 +00:00
return ()
endif ()
set(FIU_DIR "${ClickHouse_SOURCE_DIR}/contrib/libfiu/")
set(FIU_SOURCES
${FIU_DIR}/libfiu/fiu.c
${FIU_DIR}/libfiu/fiu-rc.c
${FIU_DIR}/libfiu/backtrace.c
${FIU_DIR}/libfiu/wtable.c
)
set(FIU_HEADERS "${FIU_DIR}/libfiu")
2023-05-01 22:05:36 +00:00
add_library(_fiu ${FIU_SOURCES})
target_compile_definitions(_fiu PUBLIC DUMMY_BACKTRACE)
target_include_directories(_fiu PUBLIC ${FIU_HEADERS})
add_library(ch_contrib::fiu ALIAS _fiu)