Build static library for regression tests when shared build with CMake
This commit is contained in:
@@ -1028,3 +1028,25 @@ 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(crypto-static STATIC $<TARGET_OBJECTS:crypto_obj>)
|
||||
target_include_directories(crypto-static
|
||||
PRIVATE
|
||||
.
|
||||
asn1
|
||||
bn
|
||||
dsa
|
||||
ec
|
||||
ecdh
|
||||
ecdsa
|
||||
evp
|
||||
modes
|
||||
x509
|
||||
../include/compat
|
||||
PUBLIC
|
||||
../include)
|
||||
target_link_libraries(crypto-static ${PLATFORM_LIBS})
|
||||
endif()
|
||||
|
||||
|
Reference in New Issue
Block a user