Externals: Link against required libraries

* curl requires zlib
* hidapi when not using libudev requires libusb
This commit is contained in:
MerryMage 2021-01-03 14:25:23 +00:00
parent 28a666a35f
commit 14c03388b3
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()