mirror of
https://github.com/transmission/transmission.git
synced 2025-12-20 02:18:42 +00:00
Always build bundled libb64 and libutp libraries as static (#4810)
This commit is contained in:
@@ -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
Submodule third-party/libb64 updated: 91a38519cb...64ab5ed769
2
third-party/libutp
vendored
2
third-party/libutp
vendored
Submodule third-party/libutp updated: bf695bdfb0...420e697ac4
Reference in New Issue
Block a user