mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
3e5ad1a138
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
36 lines
942 B
CMake
36 lines
942 B
CMake
set (DEFAULT_LIBS "-nodefaultlibs")
|
|
|
|
set (DEFAULT_LIBS "${DEFAULT_LIBS} ${COVERAGE_OPTION} -lc -lm -lpthread -ldl")
|
|
|
|
if (COMPILER_GCC)
|
|
set (DEFAULT_LIBS "${DEFAULT_LIBS} -lgcc_eh")
|
|
if (ARCH_AARCH64)
|
|
set (DEFAULT_LIBS "${DEFAULT_LIBS} -lgcc")
|
|
endif ()
|
|
endif ()
|
|
|
|
message(STATUS "Default libraries: ${DEFAULT_LIBS}")
|
|
|
|
set(CMAKE_CXX_STANDARD_LIBRARIES ${DEFAULT_LIBS})
|
|
set(CMAKE_C_STANDARD_LIBRARIES ${DEFAULT_LIBS})
|
|
|
|
# Minimal supported SDK version
|
|
set(CMAKE_OSX_DEPLOYMENT_TARGET 10.15)
|
|
|
|
# Unfortunately '-pthread' doesn't work with '-nodefaultlibs'.
|
|
# Just make sure we have pthreads at all.
|
|
set(THREADS_PREFER_PTHREAD_FLAG ON)
|
|
find_package(Threads REQUIRED)
|
|
|
|
include (cmake/cxx.cmake)
|
|
|
|
target_link_libraries(global-group INTERFACE
|
|
$<TARGET_PROPERTY:global-libs,INTERFACE_LINK_LIBRARIES>
|
|
)
|
|
|
|
# FIXME: remove when all contribs will get custom cmake lists
|
|
install(
|
|
TARGETS global-group global-libs
|
|
EXPORT global
|
|
)
|