mirror of
https://gitea.invidious.io/iv-org/litespeed-quic.git
synced 2024-08-15 00:53:43 +00:00
CMake-only computation of whether librt is needed. (#374)
This commit is contained in:
parent
c4854d203f
commit
d755d26ed2
3 changed files with 11 additions and 19 deletions
|
@ -119,6 +119,10 @@ SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DXXH_HEADER_NAME=\\\"lsquic_xxhash.h\\\"")
|
|||
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DLSQPACK_ENC_LOGGER_HEADER=\\\"lsquic_qpack_enc_logger.h\\\"")
|
||||
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DLSQPACK_DEC_LOGGER_HEADER=\\\"lsquic_qpack_dec_logger.h\\\"")
|
||||
|
||||
if(NEED_LIBRT_FOR_clock_getres)
|
||||
target_link_libraries(lsquic PRIVATE ${RT_LIBRARY})
|
||||
endif()
|
||||
|
||||
IF(LSQUIC_SHARED_LIB)
|
||||
add_library(lsquic SHARED ${lsquic_STAT_SRCS})
|
||||
TARGET_LINK_LIBRARIES(lsquic PRIVATE ${BORINGSSL_LIB_ssl} ${BORINGSSL_LIB_crypto} ${ZLIB_LIB})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue