From 870a1ebbc20324c3276842c494756e219801a738 Mon Sep 17 00:00:00 2001 From: kinichiro Date: Sat, 27 Nov 2021 20:57:14 +0900 Subject: Build static library for regression tests when shared build with CMake --- tls/CMakeLists.txt | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'tls') diff --git a/tls/CMakeLists.txt b/tls/CMakeLists.txt index 9aa10e1..17aedf0 100644 --- a/tls/CMakeLists.txt +++ b/tls/CMakeLists.txt @@ -74,3 +74,17 @@ if(ENABLE_LIBRESSL_INSTALL) RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} ) endif(ENABLE_LIBRESSL_INSTALL) + +# build static library for regression test +if(BUILD_SHARED_LIBS) + add_library(tls-static STATIC $ + $ $) + target_include_directories(tls-static + PRIVATE + . + ../include/compat + PUBLIC + ../include) + target_link_libraries(tls-static ${PLATFORM_LIBS}) +endif() + -- cgit v1.2.3-55-g6feb