curl mbedtls target_link_libraries

This commit is contained in:
OatmealDome 2024-12-22 02:41:18 -05:00
parent 96d58edb8a
commit 9effe783c7
1 changed files with 4 additions and 2 deletions

View File

@ -43,6 +43,8 @@ endif()
add_subdirectory(curl)
if((UNIX AND NOT MBEDTLS_FOUND) OR ANDROID)
# HACK: Add the mbedtls include directory.
target_include_directories(libcurl_static SYSTEM PRIVATE "${CMAKE_SOURCE_DIR}/Externals/mbedtls/include")
# HACK: Manually link with the mbedtls libraries.
target_link_libraries(libcurl_static PRIVATE
MbedTLS::mbedtls
MbedTLS::mbedx509)
endif()