mirror of
https://github.com/transmission/transmission
synced 2024-12-21 23:32:35 +00:00
Always build bundled libb64 and libutp libraries as static (#4810)
This commit is contained in:
parent
42a01068c6
commit
39acf93f1a
4 changed files with 13 additions and 4 deletions
|
@ -497,12 +497,16 @@ tr_add_external_auto_library(PSL libpsl psl
|
|||
if(ENABLE_UTP)
|
||||
tr_add_external_auto_library(UTP libutp utp
|
||||
SUBPROJECT
|
||||
TARGET libutp::libutp)
|
||||
TARGET libutp::libutp
|
||||
CMAKE_ARGS
|
||||
-DLIBUTP_SHARED:BOOL=OFF)
|
||||
endif()
|
||||
|
||||
tr_add_external_auto_library(B64 libb64 b64
|
||||
SUBPROJECT
|
||||
TARGET libb64::libb64)
|
||||
TARGET libb64::libb64
|
||||
CMAKE_ARGS
|
||||
-DLIBB64_SHARED:BOOL=OFF)
|
||||
|
||||
if(NOT ${REBUILD_WEB} STREQUAL "OFF")
|
||||
find_program(NPM npm)
|
||||
|
|
|
@ -140,6 +140,11 @@ macro(tr_add_external_auto_library ID DIRNAME LIBNAME)
|
|||
if(USE_SYSTEM_${ID})
|
||||
unset(${ID}_UPSTREAM_TARGET)
|
||||
elseif(_TAEAL_ARG_SUBPROJECT)
|
||||
foreach(ARG IN LISTS _TAEAL_ARG_CMAKE_ARGS)
|
||||
if(ARG MATCHES "^-D([^=: ]+)(:[^= ]+)?=(.*)$")
|
||||
set(${CMAKE_MATCH_1} ${CMAKE_MATCH_3} CACHE INTERNAL "")
|
||||
endif()
|
||||
endforeach()
|
||||
add_subdirectory("${CMAKE_SOURCE_DIR}/third-party/${DIRNAME}" "${CMAKE_BINARY_DIR}/third-party/${DIRNAME}")
|
||||
else()
|
||||
set(${ID}_UPSTREAM_TARGET ${LIBNAME})
|
||||
|
|
2
third-party/libb64
vendored
2
third-party/libb64
vendored
|
@ -1 +1 @@
|
|||
Subproject commit 91a38519cb18d3869b4f1c99b0a80726547054af
|
||||
Subproject commit 64ab5ed7693d7a063c43f9da64c7d8e4e9519ef4
|
2
third-party/libutp
vendored
2
third-party/libutp
vendored
|
@ -1 +1 @@
|
|||
Subproject commit bf695bdfb047cdca9710ea9cffc4018669cf9548
|
||||
Subproject commit 420e697ac4f3d70005a85e3cfd8b022e2bd5b060
|
Loading…
Reference in a new issue