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:
parent
0a6c016734
commit
fa6ad47f71
1 changed files with 9 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue