1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-03-03 18:25:35 +00:00

Use C++ linker for anything that depends on static libutp

This commit is contained in:
Mike Gelfand 2017-05-20 13:04:49 +03:00
parent 0a6c016734
commit fa6ad47f71

View file

@ -321,6 +321,15 @@ tr_add_external_auto_library(DHT dht dht)
if(ENABLE_UTP)
tr_add_external_auto_library(UTP libutp utp)
if(UTP_UPSTREAM_TARGET)
# Use C++ linker for anything that depends on static libutp
# TODO: switch to imported targets for all the dependencies
add_library(UTP::UTP STATIC IMPORTED)
set_property(TARGET UTP::UTP PROPERTY IMPORTED_LOCATION "${UTP_LIBRARIES}")
set_property(TARGET UTP::UTP PROPERTY IMPORTED_LINK_INTERFACE_LANGUAGES "CXX")
set(UTP_LIBRARIES UTP::UTP)
endif()
endif()
tr_add_external_auto_library(B64 libb64 b64)