File: correct_testing_link.patch

package info (click to toggle)
snappy 1.2.2-2
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 3,620 kB
  • sloc: cpp: 4,606; makefile: 16
file content (28 lines) | stat: -rw-r--r-- 922 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
Description: add required libraries to link with
 Just add those libraries to the linker.
Author: Laszlo Boszormenyi (GCS) <gcs@debian.org>
Forwarded: not-needed
Last-Update: 2021-12-04

---

--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -377,7 +377,7 @@ if(SNAPPY_BUILD_TESTS)
     PRIVATE
       "snappy_unittest.cc"
   )
-  target_link_libraries(snappy_unittest snappy_test_support gmock_main gtest)
+  target_link_libraries(snappy_unittest snappy_test_support gmock_main gmock gtest pthread)
 
   add_test(
     NAME snappy_unittest
@@ -398,7 +398,7 @@ if(SNAPPY_BUILD_BENCHMARKS)
     PRIVATE
       "snappy_benchmark.cc"
   )
-  target_link_libraries(snappy_benchmark snappy_test_support benchmark_main)
+  target_link_libraries(snappy_benchmark snappy_test_support benchmark_main benchmark pthread)
 
   # This project uses Google benchmark for benchmarking.
   set(BENCHMARK_ENABLE_TESTING OFF CACHE BOOL "" FORCE)