mirror of
https://github.com/transmission/transmission.git
synced 2026-04-19 00:12:26 +01:00
build: support building with system gtest (#8196)
* build: support building with system gtest * chore: include gtest headers with h-char include
This commit is contained in:
6
.github/actions/install-deps/action.yml
vendored
6
.github/actions/install-deps/action.yml
vendored
@@ -112,6 +112,12 @@ runs:
|
||||
xz-utils
|
||||
)
|
||||
|
||||
# Debian wants to build Transmission with system gtest
|
||||
# https://github.com/transmission/transmission/pull/6900
|
||||
if [ "$DISTRO" = 'debian' ]; then
|
||||
BASE_PACKAGES+=(libgtest-dev)
|
||||
fi
|
||||
|
||||
# Compiler packages
|
||||
if [[ "${{ inputs.compiler }}" == "clang" ]]; then
|
||||
BASE_PACKAGES+=(clang)
|
||||
|
||||
2
.github/workflows/actions.yml
vendored
2
.github/workflows/actions.yml
vendored
@@ -771,6 +771,7 @@ jobs:
|
||||
-DREBUILD_WEB=${{ (needs.what-to-make.outputs.make-web == 'true') && 'ON' || 'OFF' }} \
|
||||
-DENABLE_WERROR=ON \
|
||||
-DRUN_CLANG_TIDY=OFF \
|
||||
-DUSE_SYSTEM_GTEST=ON \
|
||||
-DUSE_SYSTEM_DEFAULT=ON \
|
||||
-DUSE_SYSTEM_CRC32C=OFF `# Not packaged in Debian 11` \
|
||||
-DUSE_SYSTEM_DHT=OFF `# Not packaged in Debian 11` \
|
||||
@@ -851,6 +852,7 @@ jobs:
|
||||
-DREBUILD_WEB=${{ (needs.what-to-make.outputs.make-web == 'true') && 'ON' || 'OFF' }} \
|
||||
-DENABLE_WERROR=ON \
|
||||
-DRUN_CLANG_TIDY=OFF \
|
||||
-DUSE_SYSTEM_GTEST=ON \
|
||||
-DUSE_SYSTEM_DEFAULT=ON \
|
||||
-DUSE_SYSTEM_CRC32C=OFF `# Not packaged in Debian` \
|
||||
-DUSE_SYSTEM_DHT=OFF `# Not packaged in Debian` \
|
||||
|
||||
Reference in New Issue
Block a user