mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-07-08 21:50:32 +00:00
MinGW32 static build should link to windows libs and libz
This commit is contained in:
parent
6a8e7f82b3
commit
6c1f69b879
|
@ -94,6 +94,12 @@ endif()
|
||||||
if(USE_STATIC_POLARSSL_LIBRARY)
|
if(USE_STATIC_POLARSSL_LIBRARY)
|
||||||
add_library(${polarssl_static_target} STATIC ${src})
|
add_library(${polarssl_static_target} STATIC ${src})
|
||||||
set_target_properties(${polarssl_static_target} PROPERTIES OUTPUT_NAME polarssl)
|
set_target_properties(${polarssl_static_target} PROPERTIES OUTPUT_NAME polarssl)
|
||||||
|
target_link_libraries(${polarssl_static_target} ${libs})
|
||||||
|
|
||||||
|
if(ZLIB_FOUND)
|
||||||
|
target_link_libraries(${polarssl_static_target} ${ZLIB_LIBRARIES})
|
||||||
|
endif(ZLIB_FOUND)
|
||||||
|
|
||||||
|
|
||||||
install(TARGETS ${polarssl_static_target}
|
install(TARGETS ${polarssl_static_target}
|
||||||
DESTINATION ${LIB_INSTALL_DIR}
|
DESTINATION ${LIB_INSTALL_DIR}
|
||||||
|
|
Loading…
Reference in a new issue