forked from pool/snappy
* We fixed a very old issue of data corruption when compressed size exceeds 4GB. This can happen when you compress data close to 4GB and it's incompressible, for example, random data. * Started to use minimum CMake 3.10 because older ones are not planned to be supported. - update to 1.2.1 * We restored old functions/symbols after reports of ABI incompatibility apache/arrow#41058 - update to 1.2.0 * Level API was added with level 2 support. Compresses 5-10% denser and decompresses 5-10% faster. The compression speed drop is about 20-30% - add correct_testing_link.patch, taken from Debian - adjust reenable-rtti.patch - adjust use-system-test-libs.patch, following the patch from Debian OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/snappy?expand=0&rev=30
52 lines
2.0 KiB
Diff
52 lines
2.0 KiB
Diff
Description: googletest and gmock are packaged, use those
|
|
No need to add external (empty) project directories, will link with system
|
|
ones357.
|
|
Author: Laszlo Boszormenyi (GCS) <gcs@debian.org>
|
|
Forwarded: not-needed
|
|
Last-Update: 2024-05-01
|
|
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -330,20 +330,20 @@
|
|
set(build_gmock ON)
|
|
|
|
# This project is tested using GoogleTest.
|
|
- add_subdirectory("third_party/googletest")
|
|
+ # add_subdirectory("third_party/googletest")
|
|
|
|
# GoogleTest triggers a missing field initializers warning.
|
|
- if(SNAPPY_HAVE_NO_MISSING_FIELD_INITIALIZERS)
|
|
- set_property(TARGET gtest
|
|
- APPEND PROPERTY COMPILE_OPTIONS -Wno-missing-field-initializers)
|
|
- set_property(TARGET gmock
|
|
- APPEND PROPERTY COMPILE_OPTIONS -Wno-missing-field-initializers)
|
|
- endif(SNAPPY_HAVE_NO_MISSING_FIELD_INITIALIZERS)
|
|
-
|
|
- if(SNAPPY_HAVE_NO_IMPLICIT_INT_FLOAT_CONVERSION)
|
|
- set_property(TARGET gtest
|
|
- APPEND PROPERTY COMPILE_OPTIONS -Wno-implicit-int-float-conversion)
|
|
- endif(SNAPPY_HAVE_NO_IMPLICIT_INT_FLOAT_CONVERSION)
|
|
+ # if(SNAPPY_HAVE_NO_MISSING_FIELD_INITIALIZERS)
|
|
+ # set_property(TARGET gtest
|
|
+ # APPEND PROPERTY COMPILE_OPTIONS -Wno-missing-field-initializers)
|
|
+ # set_property(TARGET gmock
|
|
+ # APPEND PROPERTY COMPILE_OPTIONS -Wno-missing-field-initializers)
|
|
+ # endif(SNAPPY_HAVE_NO_MISSING_FIELD_INITIALIZERS)
|
|
+ #
|
|
+ # if(SNAPPY_HAVE_NO_IMPLICIT_INT_FLOAT_CONVERSION)
|
|
+ # set_property(TARGET gtest
|
|
+ # APPEND PROPERTY COMPILE_OPTIONS -Wno-implicit-int-float-conversion)
|
|
+ # endif(SNAPPY_HAVE_NO_IMPLICIT_INT_FLOAT_CONVERSION)
|
|
|
|
add_executable(snappy_unittest "")
|
|
target_sources(snappy_unittest
|
|
@@ -376,7 +376,7 @@
|
|
# This project uses Google benchmark for benchmarking.
|
|
set(BENCHMARK_ENABLE_TESTING OFF CACHE BOOL "" FORCE)
|
|
set(BENCHMARK_ENABLE_EXCEPTIONS OFF CACHE BOOL "" FORCE)
|
|
- add_subdirectory("third_party/benchmark")
|
|
+ # add_subdirectory("third_party/benchmark")
|
|
endif(SNAPPY_BUILD_BENCHMARKS)
|
|
|
|
if(SNAPPY_FUZZING_BUILD)
|