Rebuild with googletest 1.17.0

This commit is contained in:
2025-09-19 10:42:35 +03:00
parent 7c2492250c
commit 17b5c65a80
2 changed files with 8 additions and 10 deletions
+1
View File
@@ -1,6 +1,7 @@
name: abseil-cpp
description: Abseil Common Libraries (C++)
version: 20250814.0
revision: 2
url: https://abseil.io/
license: Apache-2.0
architecture: any
+7 -10
View File
@@ -15,31 +15,28 @@ prepare() {
# The build function is executed in the source directory
# This function is used to compile the source code
build() {
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo \
cmake -B build \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_INSTALL_PREFIX=/usr \
-DBUILD_SHARED_LIBS=ON \
-DABSL_BUILD_TESTING=ON \
-DABSL_USE_EXTERNAL_GOOGLETEST=ON \
-DABSL_FIND_GOOGLETEST=ON \
-DABSL_USE_GOOGLETEST_HEAD=ON ..
make
-DABSL_USE_GOOGLETEST_HEAD=ON
cmake --build build
}
# The check function is executed in the source directory
# This function is used to run tests to verify the package has been compiled correctly
check() {
cd build
ctest
ctest --test-dir build
}
# The package function is executed in the source directory
# This function is used to move the compiled files into the output directory
package() {
cd build
make DESTDIR="$BPM_OUTPUT" install
DESTDIR="$BPM_OUTPUT" cmake --install build
# Install package license
install -Dm644 "$BPM_SOURCE"/LICENSE "$BPM_OUTPUT"/usr/share/licenses/abseil-cpp/LICENSE
}