ClickHouse/libs/libglibc-compatibility/tests/CMakeLists.txt
proller 2221638ade Fix presence of both libc++ and -static-libstdc++ link flags (#3706)
* Fix precence of both libc++ and -static-libstdc++ link flags

* cmake: NO_WERROR for ARCH_ARM

* Try fix test link

* revert

* Update CMakeLists.txt
2018-12-01 01:30:34 +03:00

12 lines
377 B
CMake

include (${ClickHouse_SOURCE_DIR}/cmake/add_check.cmake)
foreach (T longjmp siglongjmp)
add_executable (${T} ${T}.c)
target_link_libraries (${T} PRIVATE glibc-compatibility)
if (USE_LIBCXX)
target_link_libraries (${T} PRIVATE Threads::Threads)
endif ()
set_target_properties (${T} PROPERTIES LINKER_LANGUAGE CXX)
add_check (${T})
endforeach ()