diff --git a/Externals/curl/CMakeLists.txt b/Externals/curl/CMakeLists.txt index 5e98e4c55b..5220a1303e 100644 --- a/Externals/curl/CMakeLists.txt +++ b/Externals/curl/CMakeLists.txt @@ -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()