Make FDBLibTLS and thirdparty static libraries.

They're statically linked anyway, and this fixes an issue with CMake
complaining that there are cyclic dependencies that are non-static.
This commit is contained in:
Alex Miller 2019-09-30 18:32:24 -07:00
parent d41852abbc
commit 3b9678356e
2 changed files with 2 additions and 2 deletions

View File

@ -8,5 +8,5 @@ set(SRCS
FDBLibTLSVerify.cpp
FDBLibTLSVerify.h)
add_library(FDBLibTLS ${SRCS})
add_library(FDBLibTLS STATIC ${SRCS})
target_link_libraries(FDBLibTLS PUBLIC LibreSSL boost_target PRIVATE flow)

View File

@ -54,7 +54,7 @@ if(NOT WIN32)
list(APPEND FDBRPC_THIRD_PARTY_SRCS libcoroutine/context.c libeio/eio.c)
endif()
add_library(thirdparty ${FDBRPC_THIRD_PARTY_SRCS})
add_library(thirdparty STATIC ${FDBRPC_THIRD_PARTY_SRCS})
if(NOT WIN32)
target_compile_options(thirdparty BEFORE PRIVATE -w) # disable warnings for third party
endif()