Merge pull request #9420 from MerryMage/ext

Externals: Link against required libraries
This commit is contained in:
Léo Lam 2021-01-05 15:15:15 +01:00 committed by GitHub
commit 9069ad6cce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -13,5 +13,5 @@ add_library(
${SRCS} ${SRCS}
) )
target_link_libraries(curl ${MBEDTLS_LIBRARIES}) target_link_libraries(curl ${MBEDTLS_LIBRARIES} z)
target_compile_definitions(curl PUBLIC CURL_STATICLIB PRIVATE CURL_DISABLE_LDAP) target_compile_definitions(curl PUBLIC CURL_STATICLIB PRIVATE CURL_DISABLE_LDAP)

View File

@ -14,6 +14,7 @@ else()
target_link_libraries(hidapi PRIVATE udev) target_link_libraries(hidapi PRIVATE udev)
else() else()
target_sources(hidapi PRIVATE libusb/hid.c) target_sources(hidapi PRIVATE libusb/hid.c)
target_link_libraries(hidapi PRIVATE usb)
endif() endif()
endif() endif()