summaryrefslogtreecommitdiff
path: root/devel/snappy/patches/patch-CMakeLists.txt
blob: f6fc3df5dd073f7ca1bcebd549a10e255f6ae7b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
$NetBSD: patch-CMakeLists.txt,v 1.2 2017/08/25 08:32:19 adam Exp $

Correcly link against googletest libraries.

--- CMakeLists.txt.orig	2017-08-24 23:54:23.000000000 +0000
+++ CMakeLists.txt
@@ -118,7 +118,7 @@ if(SNAPPY_BUILD_TESTS)
       "${PROJECT_SOURCE_DIR}/snappy-test.cc"
   )
   target_compile_definitions(snappy_unittest PRIVATE -DHAVE_CONFIG_H)
-  target_link_libraries(snappy_unittest snappy ${GFLAGS_LIBRARIES})
+  target_link_libraries(snappy_unittest snappy ${GTEST_BOTH_LIBRARIES})
 
   if(HAVE_LIBZ)
     target_link_libraries(snappy_unittest z)