File: fix_tests.patch

package info (click to toggle)
benchmark 1.9.5-1~exp1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 1,820 kB
  • sloc: cpp: 14,339; python: 2,399; ansic: 38; sh: 28; makefile: 14
file content (22 lines) | stat: -rw-r--r-- 682 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
index 8a1a1a9..30e09a3 100644
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -1,4 +1,8 @@
 #Enable the tests
+cmake_minimum_required(VERSION 3.9)
+project(benchmark_autopkgtest)
+find_package(benchmark REQUIRED)
+find_package(GTest REQUIRED)
 
 set(THREADS_PREFER_PTHREAD_FLAG ON)
 
@@ -233,7 +237,7 @@ if (BENCHMARK_ENABLE_GTEST_TESTS)
   macro(compile_gtest name)
     add_executable(${name} "${name}.cc")
     target_link_libraries(${name} benchmark::benchmark
-        gmock_main ${CMAKE_THREAD_LIBS_INIT})
+        GTest::gmock_main ${CMAKE_THREAD_LIBS_INIT})
   endmacro(compile_gtest)
 
   macro(add_gtest name)