void-packages/srcpkgs/snappy/patches/cmakelists_no_3rdparty.patch

29 lines
1.3 KiB
Diff

--- CMakeLists.txt 2021-05-05 02:53:34.000000000 +0400
+++ CMakeLists.txt 2021-05-24 13:49:21.551706280 +0400
@@ -287,17 +286,0 @@ if(SNAPPY_BUILD_TESTS)
- # Prevent overriding the parent project's compiler/linker settings on Windows.
- set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)
- set(install_gtest OFF)
- set(install_gmock OFF)
- set(build_gmock ON)
-
- # This project is tested using 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)
-
@@ -309 +292 @@ if(SNAPPY_BUILD_TESTS)
- target_link_libraries(snappy_unittest snappy_test_support gmock_main gtest)
+ target_link_libraries(snappy_unittest snappy_test_support gtest_main gtest)
@@ -330 +313 @@ if(SNAPPY_BUILD_BENCHMARKS)
- target_link_libraries(snappy_benchmark snappy_test_support benchmark_main)
+ target_link_libraries(snappy_benchmark snappy_test_support benchmark_main benchmark)
@@ -335 +317,0 @@ if(SNAPPY_BUILD_BENCHMARKS)
- add_subdirectory("third_party/benchmark")